From 4c48e7ebdf93a4ecdbaba6552e0e3355aa215269 Mon Sep 17 00:00:00 2001 From: Burhan Rajgara Date: Sat, 14 Dec 2024 11:19:23 -0800 Subject: [PATCH] reset stencil mask too --- src/pica/gpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pica/gpu.c b/src/pica/gpu.c index 8b888ba..2a8963c 100644 --- a/src/pica/gpu.c +++ b/src/pica/gpu.c @@ -393,6 +393,7 @@ void gpu_clear_fb(GPU* gpu, u32 paddr, u32 color) { glDisable(GL_SCISSOR_TEST); glColorMask(true, true, true, true); glDepthMask(true); + glStencilMask(0xff); // right now we assume clear color is rgba8888 and d24s8 format, this should // be changed for (int i = 0; i < FB_MAX; i++) {