struct state_key {
GLuint nr_enabled_units:8;
- GLuint enabled_units:8;
GLuint separate_specular:1;
GLuint fog_mode:2; /**< FOG_x */
GLuint inputs_available:12;
format = _mesa_texture_base_format(texObj);
key->unit[i].enabled = 1;
- key->enabled_units |= (1<<i);
key->nr_enabled_units = i + 1;
inputs_referenced |= VARYING_BIT_TEX(i);
struct state_key *key = p->state;
GLuint unit;
- if (key->enabled_units) {
+ if (key->nr_enabled_units) {
/* First pass - to support texture_env_crossbar, first identify
* all referenced texture sources and emit texld instructions
* for each: