projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a873905
)
r300: Assert if the primitive type is unknown; this can't really happen.
author
Oliver McFadden
<z3ro.geek@gmail.com>
Fri, 11 May 2007 20:06:43 +0000
(20:06 +0000)
committer
Oliver McFadden
<z3ro.geek@gmail.com>
Fri, 11 May 2007 21:41:16 +0000
(21:41 +0000)
src/mesa/drivers/dri/r300/r300_render.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r300/r300_render.c
b/src/mesa/drivers/dri/r300/r300_render.c
index f7b178d0747b555e5ebd05ff584d34ab8e7deb0c..8a567d8afaa04f5dc6f1ef44d5d9915201515e18 100644
(file)
--- 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;
}