From: Zack Rusin Date: Mon, 17 Dec 2007 19:05:46 +0000 (-0500) Subject: i965: return false when the function fails, not succeeds X-Git-Tag: android-x86-1.6~16^2~1465^2~390^2~3118 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=531efbab75ea7d05e1af4640814f19cb5594374e;p=android-x86%2Fexternal-mesa.git i965: return false when the function fails, not succeeds --- diff --git a/src/mesa/pipe/i965simple/brw_draw.c b/src/mesa/pipe/i965simple/brw_draw.c index 498bf6b7ee1..25861a4373e 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;