From 12fe319c53187e9a316f8c26441040a84ae4efca Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Fri, 21 Aug 2009 18:29:06 +0300 Subject: [PATCH] r300: Handle possible fall back if space check fails. --- src/mesa/drivers/dri/r300/r300_draw.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/drivers/dri/r300/r300_draw.c b/src/mesa/drivers/dri/r300/r300_draw.c index d4246b386ca..3cdb9dc2edb 100644 --- a/src/mesa/drivers/dri/r300/r300_draw.c +++ b/src/mesa/drivers/dri/r300/r300_draw.c @@ -611,6 +611,9 @@ static GLboolean r300TryDrawPrims(GLcontext *ctx, r300AllocDmaRegions(ctx, arrays, max_index + 1); + if (r300->fallback) + return GL_FALSE; + r300EmitCacheFlush(r300); radeonEmitState(&r300->radeon); -- 2.30.2