diff options
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/texstate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index 36c543b9bad..5cbf7914b62 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -579,6 +579,7 @@ update_texture_state( struct gl_context *ctx ) texUnit->_ReallyEnabled = 0x0; if (enabledTargets == 0x0) { + _mesa_reference_texobj(&texUnit->_Current, NULL); /* neither vertex nor fragment processing uses this unit */ continue; } @@ -629,6 +630,7 @@ update_texture_state( struct gl_context *ctx ) } else { /* fixed-function: texture unit is really disabled */ + _mesa_reference_texobj(&texUnit->_Current, NULL); continue; } } |