diff options
author | Eric Anholt <[email protected]> | 2014-04-23 16:32:39 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-04-30 14:33:20 -0700 |
commit | 62d46332d8ed7a6270bc4e0520cf52668efd33b5 (patch) | |
tree | 2c15419f6ccb3c00a12a1c19f9d9925090b59bf0 /src/mesa | |
parent | 6bac47c05a40ea5a9f62b8b40bc1399a613d53df (diff) |
mesa: Ensure that (unit->_Current != 0) == (unit->_ReallyEnabled != 0).
I'm going to try to delete _ReallyEnabled, which is this weird bitfield
with either 0 or 1 bits set with just the reference to _Current.
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
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; } } |