diff options
author | Eric Anholt <[email protected]> | 2014-04-23 15:30:27 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-04-30 14:33:17 -0700 |
commit | c703658b3965bf2e4f3593a0d54be03e8e8b1436 (patch) | |
tree | b5b6b201cbc4816dec9b6f51c0da3570b50585a3 /src/mesa/main/ffvertex_prog.c | |
parent | 3dfe56c53bc7f37b65b72408fe3470ecfd218595 (diff) |
mesa: Drop _EnabledUnits.
The field wasn't really valid, since we've got more than 32 units now. It
turns out it was mostly just used for checking != 0, or checking for fixed
function coordinates, though.
v2: Fix mis-conversion in xm_line.c (caught by Ken).
Reviewed-by: Matt Turner <[email protected]> (v1)
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/ffvertex_prog.c')
-rw-r--r-- | src/mesa/main/ffvertex_prog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/ffvertex_prog.c b/src/mesa/main/ffvertex_prog.c index c5583c9657c..bdabc3f45ff 100644 --- a/src/mesa/main/ffvertex_prog.c +++ b/src/mesa/main/ffvertex_prog.c @@ -233,7 +233,7 @@ static void make_state_key( struct gl_context *ctx, struct state_key *key ) if (ctx->Texture._TexGenEnabled || ctx->Texture._TexMatEnabled || - ctx->Texture._EnabledUnits) + ctx->Texture._MaxEnabledTexImageUnit != -1) key->texture_enabled_global = 1; for (i = 0; i < MAX_TEXTURE_COORD_UNITS; i++) { |