tnl: check that state is validated before drawing
authorBrian Paul <brianp@vmware.com>
Fri, 29 Jan 2010 15:40:46 +0000 (08:40 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 29 Jan 2010 15:40:46 +0000 (08:40 -0700)
(cherry picked from commit 9fd3c74724e557bc6ecc851d8552615ab3becfe2)

Conflicts:

src/mesa/tnl/t_draw.c

src/mesa/tnl/t_draw.c

index adc5048..812d712 100644 (file)
@@ -402,6 +402,9 @@ void _tnl_draw_prims( GLcontext *ctx,
    GLint max_basevertex = prim->basevertex;
    GLuint i;
 
+   /* Mesa core state should have been validated already */
+   assert(ctx->NewState == 0x0);
+
    if (!_mesa_check_conditional_render(ctx))
       return; /* don't draw */