From: Stephane Marchesin Date: Mon, 6 Oct 2008 17:48:57 +0000 (+0200) Subject: Mesa: fix the case where there are no vertex attributes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8e8208d6db8b764568539784a6473d545dec2265;p=mesa.git Mesa: fix the case where there are no vertex attributes. --- 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");*/