mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 19:00:13 +01:00
st/mesa: check that state is validated before drawing
This commit is contained in:
parent
3cba779e16
commit
4d1234e222
1 changed files with 3 additions and 0 deletions
|
|
@ -569,6 +569,9 @@ st_draw_vbo(GLcontext *ctx,
|
|||
/* sanity check for pointer arithmetic below */
|
||||
assert(sizeof(arrays[0]->Ptr[0]) == 1);
|
||||
|
||||
/* Mesa core state should have been validated already */
|
||||
assert(ctx->NewState == 0x0);
|
||||
|
||||
st_validate_state(ctx->st);
|
||||
|
||||
/* must get these after state validation! */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue