OSDN Git Service
(root)
/
android-x86
/
external-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
498bf6b
..
25861a4
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;