mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-26 06:50:37 +02:00
tnl: check that state is validated before drawing
This commit is contained in:
parent
4d1234e222
commit
9fd3c74724
1 changed files with 3 additions and 0 deletions
|
|
@ -394,6 +394,9 @@ void _tnl_draw_prims( GLcontext *ctx,
|
|||
GLuint max_basevertex = prim->basevertex;
|
||||
GLuint i;
|
||||
|
||||
/* Mesa core state should have been validated already */
|
||||
assert(ctx->NewState == 0x0);
|
||||
|
||||
for (i = 1; i < nr_prims; i++)
|
||||
max_basevertex = MAX2(max_basevertex, prim[i].basevertex);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue