summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorStephane Marchesin <[email protected]>2008-10-07 21:28:38 +0200
committerStephane Marchesin <[email protected]>2008-10-07 21:28:38 +0200
commit4f1dafaa82985bf0f04a16ba2ba2d1e8ccf83724 (patch)
treeee5eed9cc3dec672cdcdc73238265541db34f717 /src/mesa/state_tracker
parent1ec78df1e76a58f23cadce7b22d34849af83bf84 (diff)
Mesa: fix the case where there are no vertex attributes.
This is a backport of 8e8208d6db8b764568539784a6473d545dec2265 to gallium-0.1
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_draw.c2
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");*/