diff options
author | Roland Scheidegger <[email protected]> | 2006-02-01 23:14:42 +0000 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2006-02-01 23:14:42 +0000 |
commit | 5951aab8236e964aa3ebc412bf13e31da99383bf (patch) | |
tree | c0da572d4e6f7b9e2914a7f8ea0067ab381d989c | |
parent | 865ad82bb8af1251b0240fd03e89ae0793c0ef0f (diff) |
fix texcoord unit assertion, the right one (bug 5780)
-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 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? */ |