diff options
author | Stephane Marchesin <[email protected]> | 2008-10-07 21:28:38 +0200 |
---|---|---|
committer | Stephane Marchesin <[email protected]> | 2008-10-07 21:28:38 +0200 |
commit | 4f1dafaa82985bf0f04a16ba2ba2d1e8ccf83724 (patch) | |
tree | ee5eed9cc3dec672cdcdc73238265541db34f717 | |
parent | 1ec78df1e76a58f23cadce7b22d34849af83bf84 (diff) |
Mesa: fix the case where there are no vertex attributes.
This is a backport of 8e8208d6db8b764568539784a6473d545dec2265 to gallium-0.1
-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 bdf8648ef7c..61949a93884 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");*/ |