From: Alex Deucher Date: Mon, 27 Jul 2009 06:25:24 +0000 (-0400) Subject: r600: don't draw when num indices is 0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e6819f8430e77012d6cd9278cabaf1d4238117a;p=mesa.git r600: don't draw when num indices is 0 fixes engine demo --- 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 */