summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/state_tracker/st_draw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c
index bdf8648ef7c..61949a93884 100644
--- a/src/mesa/state_tracker/st_draw.c
+++ b/src/mesa/state_tracker/st_draw.c
@@ -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");*/