summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/i965simple
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2007-12-17 14:05:46 -0500
committerZack Rusin <zack@tungstengraphics.com>2007-12-17 14:05:46 -0500
commit531efbab75ea7d05e1af4640814f19cb5594374e (patch)
tree5d1809b7fdea1a727fd375633eb1d78c3126a77e /src/mesa/pipe/i965simple
parent55c1894d0a03a76fcdaed61528ea7e5c74237e38 (diff)
i965: return false when the function fails, not succeeds
Diffstat (limited to 'src/mesa/pipe/i965simple')
-rw-r--r--src/mesa/pipe/i965simple/brw_draw.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/pipe/i965simple/brw_draw.c b/src/mesa/pipe/i965simple/brw_draw.c
index 498bf6b7ee..25861a4373 100644
--- a/src/mesa/pipe/i965simple/brw_draw.c
+++ b/src/mesa/pipe/i965simple/brw_draw.c
@@ -170,9 +170,8 @@ static boolean brw_try_draw_elements( struct pipe_context *pipe,
if (brw->state.dirty.brw)
brw_validate_state( brw );
- if (brw_emit_prim(brw,
- index_buffer != NULL,
- start, count))
+ if (!brw_emit_prim(brw, index_buffer != NULL,
+ start, count))
return FALSE;
return TRUE;