diff options
author | Brian Paul <[email protected]> | 2010-02-03 13:24:43 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-02-03 15:48:42 -0700 |
commit | 89c8ff3382763c654ef680c522c287764d943d6c (patch) | |
tree | 2004c0159c6502a1669aa1e25627387e3a3365d1 | |
parent | 82a2d3564a98ba6dc34d170150edcaa0768f6427 (diff) |
mesa: added texcoord unit assertion
-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); |