From: Brian Paul Date: Fri, 29 Jan 2010 15:40:46 +0000 (-0700) Subject: tnl: check that state is validated before drawing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6fea2be7959620fe0a1b28c275a7d960005c8b09;p=mesa.git tnl: check that state is validated before drawing (cherry picked from commit 9fd3c74724e557bc6ecc851d8552615ab3becfe2) Conflicts: src/mesa/tnl/t_draw.c --- diff --git a/src/mesa/tnl/t_draw.c b/src/mesa/tnl/t_draw.c index adc50485c1d..812d712b079 100644 --- a/src/mesa/tnl/t_draw.c +++ b/src/mesa/tnl/t_draw.c @@ -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 */