summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/drivers/dri/r600/r700_render.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_render.c b/src/mesa/drivers/dri/r600/r700_render.c
index 0a5e0415479..5a2bf84b59e 100644
--- a/src/mesa/drivers/dri/r600/r700_render.c
+++ b/src/mesa/drivers/dri/r600/r700_render.c
@@ -342,6 +342,9 @@ static GLboolean r700RunRender(GLcontext * ctx,
unsigned int VGT_PRIMITIVE_TYPE = 0;
unsigned int VGT_NUM_INDICES = 0;
+ if (numIndices < 1)
+ continue;
+
numEntires = 3 /* VGT_PRIMITIVE_TYPE */
+ 2 /* VGT_INDEX_TYPE */
+ 2 /* NUM_INSTANCES */