diff options
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/array_cache/ac_import.c | 4 |
1 files 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? */ |