From 5951aab8236e964aa3ebc412bf13e31da99383bf Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Wed, 1 Feb 2006 23:14:42 +0000 Subject: fix texcoord unit assertion, the right one (bug 5780) --- src/mesa/array_cache/ac_import.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/array_cache/ac_import.c b/src/mesa/array_cache/ac_import.c index 9e8e01c6e6..62206002cd 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? */ -- cgit v1.2.3