Mesa: fix the case where there are no vertex attributes.
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>
Mon, 6 Oct 2008 17:48:57 +0000 (19:48 +0200)
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>
Mon, 6 Oct 2008 17:48:57 +0000 (19:48 +0200)
src/mesa/state_tracker/st_draw.c

index bdf8648ef7ca92694bb0c934d4f6a3d96521841f..f9016923dcd87b507048049f6da96f24284a546d 100644 (file)
@@ -525,6 +525,8 @@ st_draw_vbo(GLcontext *ctx,
                                 vbuffer, velements);
       num_vbuffers = 1;
       num_velements = vp->num_inputs;
+      if (num_velements == 0)
+             num_vbuffers = 0;
    }
    else {
       /*printf("Draw non-interleaved\n");*/