wined3d: Unload texture coords for all supported texture stages.

This commit is contained in:
Stefan Dösinger 2007-06-20 14:23:04 +02:00 committed by Alexandre Julliard
parent 030b92a2f6
commit 35ee1e9693
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}