fix texcoord unit assertion, the right one (bug 5780)

This commit is contained in:
Roland Scheidegger 2006-02-01 23:14:42 +00:00
parent 865ad82bb8
commit 5951aab823

View file

@ -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?
*/