mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
fix texcoord unit assertion, the right one (bug 5780)
This commit is contained in:
parent
865ad82bb8
commit
5951aab823
1 changed files with 2 additions and 2 deletions
|
|
@ -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?
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue