wined3d: Unload vertex weight data in case of EXT_VERTEX_WEIGHTING as well.

This commit is contained in:
H. Verbeet 2007-05-09 19:07:33 +02:00 committed by Alexandre Julliard
parent 303aeee4cb
commit f8714d771a
1 changed files with 2 additions and 0 deletions

View File

@ -2538,6 +2538,8 @@ static inline void unloadVertexData(IWineD3DStateBlockImpl *stateblock) {
}
if (GL_SUPPORT(ARB_VERTEX_BLEND)) {
glDisableClientState(GL_WEIGHT_ARRAY_ARB);
} else if (GL_SUPPORT(EXT_VERTEX_WEIGHTING)) {
glDisableClientState(GL_VERTEX_WEIGHT_ARRAY_EXT);
}
for (texture_idx = 0; texture_idx < GL_LIMITS(textures); ++texture_idx) {
GL_EXTCALL(glClientActiveTextureARB(GL_TEXTURE0_ARB + texture_idx));