summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver McFadden <z3ro.geek@gmail.com>2007-05-09 22:07:10 +0000
committerOliver McFadden <z3ro.geek@gmail.com>2007-05-09 22:43:01 +0000
commit574bf4d34618308efa390232641e25c034ec3dc7 (patch)
treea0893c37c4bc427b4c2132b6e5b9e0d4d7a75896
parent795ebb1a3b5b486e8668086137decfc6ed2a7df5 (diff)
r300: Return -1 for error.
-rw-r--r--src/mesa/drivers/dri/r300/r300_render.c6
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;