r300g: Eliminate a couple more asserts.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Fri, 18 Dec 2009 22:05:40 +0000 (14:05 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Fri, 18 Dec 2009 22:07:12 +0000 (14:07 -0800)
src/gallium/drivers/r300/r300_render.c

index 425eb9f9ef35983d6959f6f6311791cb61450808..a0d67e76181e893f3019f3e513f5a0ce5929e4f6 100644 (file)
@@ -180,7 +180,6 @@ boolean r300_draw_range_elements(struct pipe_context* pipe,
         return FALSE;
     }
 
-
     if (count > 65535) {
         return FALSE;
     }
@@ -197,11 +196,11 @@ boolean r300_draw_range_elements(struct pipe_context* pipe,
 
     if (!r300->winsys->add_buffer(r300->winsys, indexBuffer,
                                   RADEON_GEM_DOMAIN_GTT, 0)) {
-        assert(0);
+        return FALSE;
     }
 
     if (!r300->winsys->validate(r300->winsys)) {
-        assert(0);
+        return FALSE;
     }
 
     r300_emit_dirty_state(r300);