Mesa (master): r600: don't draw when num indices is 0
Alex Deucher
agd5f at kemper.freedesktop.org
Mon Jul 27 06:27:53 UTC 2009
Module: Mesa
Branch: master
Commit: 7e6819f8430e77012d6cd9278cabaf1d4238117a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7e6819f8430e77012d6cd9278cabaf1d4238117a
Author: Alex Deucher <alexdeucher at gmail.com>
Date: Mon Jul 27 02:25:24 2009 -0400
r600: don't draw when num indices is 0
fixes engine demo
---
src/mesa/drivers/dri/r600/r700_render.c | 3 +++
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 0a5e041..5a2bf84 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 */
More information about the mesa-commit
mailing list