st/mesa: check that state is validated before drawing
(cherry picked from commit 4d1234e22242529c8d85f5ef0cf826af41a91570) Conflicts: src/mesa/state_tracker/st_draw.c
This commit is contained in:
@@ -531,6 +531,9 @@ st_draw_vbo(GLcontext *ctx,
|
||||
GLboolean userSpace = GL_FALSE;
|
||||
GLboolean vertDataEdgeFlags;
|
||||
|
||||
/* Mesa core state should have been validated already */
|
||||
assert(ctx->NewState == 0x0);
|
||||
|
||||
/* Gallium probably doesn't want this in some cases. */
|
||||
if (!index_bounds_valid)
|
||||
if (!vbo_all_varyings_in_vbos(arrays))
|
||||
|
||||
Reference in New Issue
Block a user