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 bdf8648..f901692 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");*/