diff options
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_render.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_render.c b/src/mesa/drivers/dri/r300/r300_render.c index 1ecddf69c1..449b46eb7d 100644 --- a/src/mesa/drivers/dri/r300/r300_render.c +++ b/src/mesa/drivers/dri/r300/r300_render.c @@ -169,7 +169,7 @@ static int r300NumVerts(r300ContextPtr rmesa, int num_verts, int prim) fprintf(stderr, "%s:%s Do not know how to handle primitive 0x%04x - help me !\n", __FILE__, __FUNCTION__, prim & PRIM_MODE_MASK); - return 0; + return -1; break; } @@ -177,14 +177,14 @@ static int r300NumVerts(r300ContextPtr rmesa, int num_verts, int prim) WARN_ONCE ("user error: Need more than %d vertices to draw primitive 0x%04x !\n", num_verts, prim & PRIM_MODE_MASK); - return 0; + return -1; } if (verts_off > 0) { WARN_ONCE ("user error: %d is not a valid number of vertices for primitive 0x%04x !\n", num_verts, prim & PRIM_MODE_MASK); - return 0; + return -1; } return num_verts - verts_off; |