diff options
author | Oliver McFadden <[email protected]> | 2007-05-11 20:06:43 +0000 |
---|---|---|
committer | Oliver McFadden <[email protected]> | 2007-05-11 21:41:16 +0000 |
commit | 5b23d3661342bbe3857829f3e306623ddb6b3dfe (patch) | |
tree | 47d49ed63c8f1a29f950156f05f37b70e4053a38 /src/mesa/drivers | |
parent | a87390504f8aa8e5262cf721d28c80da9fcfbd44 (diff) |
r300: Assert if the primitive type is unknown; this can't really happen.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_render.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_render.c b/src/mesa/drivers/dri/r300/r300_render.c index f7b178d0747..8a567d8afaa 100644 --- a/src/mesa/drivers/dri/r300/r300_render.c +++ b/src/mesa/drivers/dri/r300/r300_render.c @@ -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; } |