From 7e6819f8430e77012d6cd9278cabaf1d4238117a Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Mon, 27 Jul 2009 02:25:24 -0400 Subject: [PATCH] r600: don't draw when num indices is 0 fixes engine demo --- src/mesa/drivers/dri/r600/r700_render.c | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- 2.30.2