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

Stephane Marchesin marcheu at kemper.freedesktop.org
Tue Oct 7 19:29:04 UTC 2008


Module: Mesa
Branch: gallium-0.1
Commit: 4f1dafaa82985bf0f04a16ba2ba2d1e8ccf83724
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4f1dafaa82985bf0f04a16ba2ba2d1e8ccf83724

Author: Stephane Marchesin <marchesin at icps.u-strasbg.fr>
Date:   Tue Oct  7 21:28:38 2008 +0200

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

This is a backport of 8e8208d6db8b764568539784a6473d545dec2265 to gallium-0.1

---

 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..61949a9 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