mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
mesa: added texcoord unit assertion
This commit is contained in:
parent
82a2d3564a
commit
89c8ff3382
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue