diff options
Diffstat (limited to 'src/mesa/array_cache/ac_import.c')
-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 3a2434f96bc..5d5c24f526b 100644 --- a/src/mesa/array_cache/ac_import.c +++ b/src/mesa/array_cache/ac_import.c @@ -268,7 +268,7 @@ static void import_texcoord( GLcontext *ctx, GLuint unit, struct gl_client_array *from = &ac->Raw.TexCoord[unit]; struct gl_client_array *to = &ac->Cache.TexCoord[unit]; - ASSERT(unit < ctx->Const.MaxTextureUnits); + ASSERT(unit < ctx->Const.MaxTextureCoordUnits); /* Limited choices at this stage: */ @@ -482,7 +482,7 @@ struct gl_client_array *_ac_import_texcoord( GLcontext *ctx, { ACcontext *ac = AC_CONTEXT(ctx); - ASSERT(unit < ctx->Const.MaxTextureUnits); + ASSERT(unit < ctx->Const.MaxTextureCoordUnits); /* Can we keep the existing version? */ |