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 <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
texUnit->_ReallyEnabled = 0x0;
if (enabledTargets == 0x0) {
+ _mesa_reference_texobj(&texUnit->_Current, NULL);
/* neither vertex nor fragment processing uses this unit */
continue;
}
}
else {
/* fixed-function: texture unit is really disabled */
+ _mesa_reference_texobj(&texUnit->_Current, NULL);
continue;
}
}