diff options
-rw-r--r-- | src/mesa/main/varray.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |