r300: Assert if the primitive type is unknown; this can't really happen.
authorOliver McFadden <z3ro.geek@gmail.com>
Fri, 11 May 2007 20:06:43 +0000 (20:06 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Fri, 11 May 2007 21:41:16 +0000 (21:41 +0000)
src/mesa/drivers/dri/r300/r300_render.c

index f7b178d0747b555e5ebd05ff584d34ab8e7deb0c..8a567d8afaa04f5dc6f1ef44d5d9915201515e18 100644 (file)
@@ -110,9 +110,7 @@ static int r300PrimitiveType(r300ContextPtr rmesa, GLcontext * ctx, int prim)
                return R300_VAP_VF_CNTL__PRIM_POLYGON;
                break;
        default:
-               fprintf(stderr,
-                       "%s:%s Do not know how to handle primitive 0x%04x - help me !\n",
-                       __FILE__, __FUNCTION__, prim & PRIM_MODE_MASK);
+               assert (0);
                return -1;
                break;
        }
@@ -162,9 +160,7 @@ static int r300NumVerts(r300ContextPtr rmesa, int num_verts, int prim)
                        verts_off = num_verts;
                break;
        default:
-               fprintf(stderr,
-                       "%s:%s Do not know how to handle primitive 0x%04x - help me !\n",
-                       __FILE__, __FUNCTION__, prim & PRIM_MODE_MASK);
+               assert (0);
                return -1;
                break;
        }