diff options
author | Stephane Marchesin <marchesin@icps.u-strasbg.fr> | 2008-10-06 19:48:57 +0200 |
---|---|---|
committer | Stephane Marchesin <marchesin@icps.u-strasbg.fr> | 2008-10-06 19:48:57 +0200 |
commit | 8e8208d6db8b764568539784a6473d545dec2265 (patch) | |
tree | f280c993497fb1ccfc917965f902cee2a10bc6ec /src/mesa/state_tracker | |
parent | afaa53040bd01ca86762e7d7b1a5a65810767921 (diff) |
Mesa: fix the case where there are no vertex attributes.
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | 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 bdf8648ef7..f9016923dc 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");*/ |