From c36d60100fc5b5b22c2e6bc43b538aa5d45c6ed6 Mon Sep 17 00:00:00 2001 From: espes Date: Wed, 8 Jul 2015 04:35:35 +1000 Subject: [PATCH] masks must be reset for clear --- hw/xbox/nv2a.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/xbox/nv2a.c b/hw/xbox/nv2a.c index e4fbc0402b..6dfa6bce2c 100644 --- a/hw/xbox/nv2a.c +++ b/hw/xbox/nv2a.c @@ -4002,6 +4002,10 @@ static void pgraph_method(NV2AState *d, (parameter & (NV097_CLEAR_SURFACE_Z | NV097_CLEAR_SURFACE_STENCIL)); pgraph_update_surface(d, true, write_color, write_zeta); + glColorMask(true, true, true, true); + glDepthMask(true); + glStencilMask(0xff); + glEnable(GL_SCISSOR_TEST); unsigned int xmin = GET_MASK(d->pgraph.regs[NV_PGRAPH_CLEARRECTX],