Mesa (gallium-0.2): Mesa: fix the case where there are no vertex attributes .

Stephane Marchesin marcheu at kemper.freedesktop.org
Mon Oct 6 17:49:17 UTC 2008


Module: Mesa
Branch: gallium-0.2
Commit: 8e8208d6db8b764568539784a6473d545dec2265
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8e8208d6db8b764568539784a6473d545dec2265

Author: Stephane Marchesin <marchesin at icps.u-strasbg.fr>
Date:   Mon Oct  6 19:48:57 2008 +0200

Mesa: fix the case where there are no vertex attributes.

---

 src/mesa/state_tracker/st_draw.c |    2 ++
 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 bdf8648..f901692 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");*/




More information about the mesa-commit mailing list