mesa/st: remove check for buffer/elements = 0
authorDave Airlie <airlied@redhat.com>
Wed, 1 Sep 2010 23:45:37 +0000 (09:45 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 1 Sep 2010 23:51:25 +0000 (09:51 +1000)
shown by the glsl-vs-point-size failing on r600g.

the test passes on softpipe and I get a full piglit test run completing on r600g.

src/mesa/state_tracker/st_draw.c

index 5b0548927023633384bf81e886bc67026f972c97..318e08886c7e6cb73af2a37b771f7a5bd67b75b6 100644 (file)
@@ -691,9 +691,6 @@ st_draw_vbo(GLcontext *ctx,
    pipe->set_vertex_buffers(pipe, num_vbuffers, vbuffer);
    cso_set_vertex_elements(st->cso_context, num_velements, velements);
 
-   if (num_vbuffers == 0 || num_velements == 0)
-      return;
-
    setup_index_buffer(ctx, ib, &ibuffer);
    pipe->set_index_buffer(pipe, &ibuffer);