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 <mattst88@gmail.com> (v1)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Eric Anholt
2014-04-23 15:30:27 -07:00
parent 3dfe56c53b
commit c703658b39
17 changed files with 31 additions and 43 deletions

View File

@@ -1015,7 +1015,7 @@ get_triangle_func(struct gl_context *ctx)
return (swrast_tri_func) NULL;
if (ctx->Polygon.SmoothFlag)
return (swrast_tri_func) NULL;
if (ctx->Texture._EnabledUnits)
if (ctx->Texture._MaxEnabledTexImageUnit != -1)
return (swrast_tri_func) NULL;
if (swrast->_RasterMask & MULTI_DRAW_BIT)
return (swrast_tri_func) NULL;