From 89c8ff3382763c654ef680c522c287764d943d6c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 3 Feb 2010 13:24:43 -0700 Subject: mesa: added texcoord unit assertion --- src/mesa/main/varray.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/main/varray.c') 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); -- cgit v1.2.3