wined3d: Unload vertex weight data in unloadVertexData.
This commit is contained in:
parent
d9fef10b71
commit
4a8b55d456
|
@ -2472,6 +2472,9 @@ static inline void unloadVertexData(IWineD3DStateBlockImpl *stateblock) {
|
||||||
if (GL_SUPPORT(EXT_SECONDARY_COLOR)) {
|
if (GL_SUPPORT(EXT_SECONDARY_COLOR)) {
|
||||||
glDisableClientState(GL_SECONDARY_COLOR_ARRAY_EXT);
|
glDisableClientState(GL_SECONDARY_COLOR_ARRAY_EXT);
|
||||||
}
|
}
|
||||||
|
if (GL_SUPPORT(ARB_VERTEX_BLEND)) {
|
||||||
|
glDisableClientState(GL_WEIGHT_ARRAY_ARB);
|
||||||
|
}
|
||||||
for (texture_idx = 0; texture_idx < GL_LIMITS(textures); ++texture_idx) {
|
for (texture_idx = 0; texture_idx < GL_LIMITS(textures); ++texture_idx) {
|
||||||
GL_EXTCALL(glClientActiveTextureARB(GL_TEXTURE0_ARB + texture_idx));
|
GL_EXTCALL(glClientActiveTextureARB(GL_TEXTURE0_ARB + texture_idx));
|
||||||
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
|
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
|
||||||
|
|
Loading…
Reference in New Issue