From: Brian Paul Date: Wed, 3 Feb 2010 20:24:43 +0000 (-0700) Subject: mesa: added texcoord unit assertion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=89c8ff3382763c654ef680c522c287764d943d6c;p=mesa.git mesa: added texcoord unit assertion --- diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 0b6295d5e16..818ed792e3b 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -475,6 +475,8 @@ _mesa_TexCoordPointer(GLint size, GLenum type, GLsizei stride, return; } + ASSERT(unit < Elements(ctx->Array.ArrayObj->TexCoord)); + update_array(ctx, &ctx->Array.ArrayObj->TexCoord[unit], _NEW_ARRAY_TEXCOORD(unit), elementSize, size, type, GL_RGBA, stride, GL_FALSE, ptr);