projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6095305
)
i965: Fix fallback on stencil drawing to fbo when the visual lacks stencil.
author
Eric Anholt
<eric@anholt.net>
Tue, 17 Feb 2009 18:53:11 +0000
(10:53 -0800)
committer
Eric Anholt
<eric@anholt.net>
Tue, 17 Feb 2009 19:30:09 +0000
(11:30 -0800)
Noticed this with the fbotexture demo.
src/mesa/drivers/dri/i965/brw_fallback.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_fallback.c
b/src/mesa/drivers/dri/i965/brw_fallback.c
index e63098fdd4a9c7fc4bc79d09064c241834af1524..5f4f2d515dff9ea227b9c986ef184fdb59168727 100644
(file)
--- 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;
}