summaryrefslogtreecommitdiff
path: root/src/mesa/main/texstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/texstate.c')
-rw-r--r--src/mesa/main/texstate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index 133b957aa5..95009a23a5 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -2716,6 +2716,7 @@ update_texture_state( GLcontext *ctx )
struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
GLuint enableBits;
+ texUnit->_Current = NULL;
texUnit->_ReallyEnabled = 0;
texUnit->_GenFlags = 0;
@@ -2789,8 +2790,7 @@ update_texture_state( GLcontext *ctx )
}
if (!texUnit->_ReallyEnabled) {
- texUnit->_Current = NULL;
- continue;
+ continue;
}
if (texUnit->_ReallyEnabled)