summaryrefslogtreecommitdiff
path: root/src/mesa/array_cache
diff options
context:
space:
mode:
authorRoland Scheidegger <rscheidegger@gmx.ch>2006-02-01 23:14:42 +0000
committerRoland Scheidegger <rscheidegger@gmx.ch>2006-02-01 23:14:42 +0000
commit5951aab8236e964aa3ebc412bf13e31da99383bf (patch)
treec0da572d4e6f7b9e2914a7f8ea0067ab381d989c /src/mesa/array_cache
parent865ad82bb8af1251b0240fd03e89ae0793c0ef0f (diff)
fix texcoord unit assertion, the right one (bug 5780)
Diffstat (limited to 'src/mesa/array_cache')
-rw-r--r--src/mesa/array_cache/ac_import.c4
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?
*/