From 8e8208d6db8b764568539784a6473d545dec2265 Mon Sep 17 00:00:00 2001 From: Stephane Marchesin Date: Mon, 6 Oct 2008 19:48:57 +0200 Subject: [PATCH] Mesa: fix the case where there are no vertex attributes. --- src/mesa/state_tracker/st_draw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index bdf8648ef7c..f9016923dcd 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");*/ -- 2.30.2