r300g: Remove faulty assert.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 7 Nov 2009 21:07:52 +0000 (13:07 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 7 Nov 2009 21:07:52 +0000 (13:07 -0800)
src/gallium/drivers/r300/r300_vbo.c

index d8b356a0617e60b49c37d6fa240416c18237417a..7e88bf3b7cec23f7f0370780d80f2474f76f04d2 100644 (file)
@@ -152,13 +152,11 @@ static void setup_vertex_buffers(struct r300_context *r300)
     finish_vertex_arrays_setup(r300);
 }
 
+/* XXX these shouldn't be asserts since we can work around bad indexbufs */
 void setup_index_buffer(struct r300_context *r300,
                         struct pipe_buffer* indexBuffer,
                         unsigned indexSize)
 {
-    /* XXX I call BS; why is this different from the assert in r300_render? */
-    assert(indexSize = 2);
-
     if (!r300->winsys->add_buffer(r300->winsys, indexBuffer,
                                   RADEON_GEM_DOMAIN_GTT, 0)) {
         assert(0);