i965: return false when the function fails, not succeeds
authorZack Rusin <zack@tungstengraphics.com>
Mon, 17 Dec 2007 19:05:46 +0000 (14:05 -0500)
committerZack Rusin <zack@tungstengraphics.com>
Mon, 17 Dec 2007 19:05:46 +0000 (14:05 -0500)
src/mesa/pipe/i965simple/brw_draw.c

index 498bf6b7ee1a950f4dc1781986c429ba4b318a7c..25861a4373e7852d745cc9fd57cbb5e54616b853 100644 (file)
@@ -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;