Module: Mesa Branch: mesa_7_7_branch Commit: 9fd3c74724e557bc6ecc851d8552615ab3becfe2 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9fd3c74724e557bc6ecc851d8552615ab3becfe2
Author: Brian Paul <[email protected]> Date: Thu Jan 28 13:05:36 2010 -0700 tnl: check that state is validated before drawing --- src/mesa/tnl/t_draw.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/mesa/tnl/t_draw.c b/src/mesa/tnl/t_draw.c index 9a888ce..b0e31c0 100644 --- a/src/mesa/tnl/t_draw.c +++ b/src/mesa/tnl/t_draw.c @@ -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); _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
