diff options
author | Alex Deucher <[email protected]> | 2009-07-27 02:25:24 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2009-07-27 02:26:41 -0400 |
commit | 7e6819f8430e77012d6cd9278cabaf1d4238117a (patch) | |
tree | 8e9049971616f6dbd72e11d5e2d99a526925d3e6 /src | |
parent | 48b2fea142af93317e095461fc1f7ef6531268c2 (diff) |
r600: don't draw when num indices is 0
fixes engine demo
Diffstat (limited to 'src')
-rw-r--r-- | 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 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 */ |