From 743b0e71d943449991aa27ca02604ca6519070df Mon Sep 17 00:00:00 2001 From: Subv Date: Sun, 27 Nov 2016 12:16:10 -0500 Subject: Rasterizer/Memfill: Set the correct stencil write mask when clearing the stencil buffer. --- src/video_core/renderer_opengl/gl_rasterizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/video_core/renderer_opengl') diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 7cc3b407a..062f8a67b 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -909,7 +909,7 @@ bool RasterizerOpenGL::AccelerateFill(const GPU::Regs::MemoryFillConfig& config) GLint value_int = (config.value_32bit >> 24); cur_state.depth.write_mask = true; - cur_state.stencil.write_mask = true; + cur_state.stencil.write_mask = 0xFF; cur_state.Apply(); glClearBufferfi(GL_DEPTH_STENCIL, 0, value_float, value_int); } -- cgit v1.2.3