change an assertion
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 16 Nov 2005 02:00:34 +0000 (02:00 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 16 Nov 2005 02:00:34 +0000 (02:00 +0000)
src/mesa/tnl/t_vb_render.c

index e322d65c60157e3b6034e74ca25e3fe029ccbd03..f6e16a9f2b5cd5974393aecdae3ba7d2e2f70367 100644 (file)
@@ -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",