i965: Fix fallback on stencil drawing to fbo when the visual lacks stencil.

Noticed this with the fbotexture demo.
This commit is contained in:
Eric Anholt 2009-02-17 10:53:11 -08:00
parent 60953059ea
commit c06f4e2a37

View file

@ -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;
}