From 0ad64faec79770ad97044257ab1baf0675187aea Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 16 Nov 2005 02:00:34 +0000 Subject: change an assertion --- src/mesa/tnl/t_vb_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa') diff --git a/src/mesa/tnl/t_vb_render.c b/src/mesa/tnl/t_vb_render.c index e322d65c601..f6e16a9f2b5 100644 --- a/src/mesa/tnl/t_vb_render.c +++ b/src/mesa/tnl/t_vb_render.c @@ -308,7 +308,7 @@ static GLboolean run_render( GLcontext *ctx, GLuint start = VB->Primitive[i].start; GLuint length = VB->Primitive[i].count; - assert((prim & PRIM_MODE_MASK) < GL_POLYGON+1); + assert((prim & PRIM_MODE_MASK) <= GL_POLYGON); if (MESA_VERBOSE & VERBOSE_PRIMS) _mesa_debug(NULL, "MESA prim %s %d..%d\n", -- cgit v1.2.3