Browse Source

tnl: check that state is validated before drawing

(cherry picked from commit 9fd3c74724)

Conflicts:

	src/mesa/tnl/t_draw.c
tags/7.8-rc1
Brian Paul 15 years ago
parent
commit
6fea2be795
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/mesa/tnl/t_draw.c

+ 3
- 0
src/mesa/tnl/t_draw.c View 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 */


Loading…
Cancel
Save