From: Roland Scheidegger Date: Wed, 1 Feb 2006 23:14:42 +0000 (+0000) Subject: fix texcoord unit assertion, the right one (bug 5780) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5951aab8236e964aa3ebc412bf13e31da99383bf;p=mesa.git fix texcoord unit assertion, the right one (bug 5780) --- diff --git a/src/mesa/array_cache/ac_import.c b/src/mesa/array_cache/ac_import.c index 9e8e01c6e6e..62206002cd3 100644 --- a/src/mesa/array_cache/ac_import.c +++ b/src/mesa/array_cache/ac_import.c @@ -278,7 +278,7 @@ import_texcoord( GLcontext *ctx, GLuint unit, GLenum type, GLuint stride ) struct gl_client_array *to = &ac->Cache.TexCoord[unit]; (void) type; (void) stride; - ASSERT(unit < MAX_TEXTURE_COORD_UNITS); + ASSERT(unit < ctx->Const.MaxTextureCoordUnits); /* Limited choices at this stage: */ @@ -501,7 +501,7 @@ _ac_import_texcoord( GLcontext *ctx, { ACcontext *ac = AC_CONTEXT(ctx); - ASSERT(unit < ctx->Const.MaxTextureCoordUnits); + ASSERT(unit < MAX_TEXTURE_COORD_UNITS); /* Can we keep the existing version? */