OSDN Git Service

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 498bf6b..25861a4 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;