r300: Handle possible fall back if space check fails.
authorPauli Nieminen <suokkos@gmail.com>
Fri, 21 Aug 2009 15:29:06 +0000 (18:29 +0300)
committerPauli Nieminen <suokkos@gmail.com>
Fri, 21 Aug 2009 16:12:30 +0000 (19:12 +0300)
src/mesa/drivers/dri/r300/r300_draw.c

index d4246b386caaafc1b3570d9ce1672c9a1b65d8a4..3cdb9dc2edb256e7a155c3a5a89605eb4ce5b1b2 100644 (file)
@@ -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);