diff options
author | Brian Paul <[email protected]> | 2010-01-29 08:39:47 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-01-29 08:39:47 -0700 |
commit | 987dd63b90adc77b2ae580579a9baed4a3d56382 (patch) | |
tree | e813647be86e2abe1284dd6b8e15f9ffed3192d5 | |
parent | 5ce9183c1c535d924a79c2b6b280c6a2648cec19 (diff) |
st/mesa: check that state is validated before drawing
(cherry picked from commit 4d1234e22242529c8d85f5ef0cf826af41a91570)
Conflicts:
src/mesa/state_tracker/st_draw.c
-rw-r--r-- | src/mesa/state_tracker/st_draw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index b0d5b993a77..381c68474d6 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -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)) |