Mesa (master): i965: Fix fallback on stencil drawing to fbo when the visual lacks stencil.
Eric Anholt
anholt at kemper.freedesktop.org
Tue Feb 17 19:31:05 UTC 2009
Module: Mesa
Branch: master
Commit: c06f4e2a371a917cfcce47e7ee4aa8f1f6528e3b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c06f4e2a371a917cfcce47e7ee4aa8f1f6528e3b
Author: Eric Anholt <eric at anholt.net>
Date: Tue Feb 17 10:53:11 2009 -0800
i965: Fix fallback on stencil drawing to fbo when the visual lacks stencil.
Noticed this with the fbotexture demo.
---
src/mesa/drivers/dri/i965/brw_fallback.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fallback.c b/src/mesa/drivers/dri/i965/brw_fallback.c
index e63098f..5f4f2d5 100644
--- a/src/mesa/drivers/dri/i965/brw_fallback.c
+++ b/src/mesa/drivers/dri/i965/brw_fallback.c
@@ -75,8 +75,8 @@ static GLboolean do_check_fallback(struct brw_context *brw)
/* _NEW_STENCIL
*/
- if (ctx->Stencil.Enabled &&
- !brw->intel.hw_stencil) {
+ if (ctx->Stencil.Enabled &&
+ (ctx->DrawBuffer->Name == 0 && !brw->intel.hw_stencil)) {
DBG("FALLBACK: stencil\n");
return GL_TRUE;
}
More information about the mesa-commit
mailing list