Module: wine Branch: master Commit: 35ee1e9693f086fa996dec020c74570e3523d942 URL: http://source.winehq.org/git/wine.git/?a=commit;h=35ee1e9693f086fa996dec020c... Author: Stefan Dösinger <stefandoesinger(a)gmx.at> Date: Wed Jun 20 14:23:04 2007 +0200 wined3d: Unload texture coords for all supported texture stages. --- dlls/wined3d/state.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index d6522f2..1c72785 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -1812,7 +1812,7 @@ static void transform_texture(DWORD state, IWineD3DStateBlockImpl *stateblock, W static void unloadTexCoords(IWineD3DStateBlockImpl *stateblock) { 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)); glDisableClientState(GL_TEXTURE_COORD_ARRAY); }