projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55c1894
)
i965: return false when the function fails, not succeeds
author
Zack Rusin
<zack@tungstengraphics.com>
Mon, 17 Dec 2007 19:05:46 +0000
(14:05 -0500)
committer
Zack Rusin
<zack@tungstengraphics.com>
Mon, 17 Dec 2007 19:05:46 +0000
(14:05 -0500)
src/mesa/pipe/i965simple/brw_draw.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/i965simple/brw_draw.c
b/src/mesa/pipe/i965simple/brw_draw.c
index 498bf6b7ee1a950f4dc1781986c429ba4b318a7c..25861a4373e7852d745cc9fd57cbb5e54616b853 100644
(file)
--- 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;