Commit 35ee1e96 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Unload texture coords for all supported texture stages.

parent 030b92a2
...@@ -1812,7 +1812,7 @@ static void transform_texture(DWORD state, IWineD3DStateBlockImpl *stateblock, W ...@@ -1812,7 +1812,7 @@ static void transform_texture(DWORD state, IWineD3DStateBlockImpl *stateblock, W
static void unloadTexCoords(IWineD3DStateBlockImpl *stateblock) { static void unloadTexCoords(IWineD3DStateBlockImpl *stateblock) {
int texture_idx; int texture_idx;
for (texture_idx = 0; texture_idx < GL_LIMITS(textures); ++texture_idx) { for (texture_idx = 0; texture_idx < GL_LIMITS(texture_stages); ++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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment