ソースを参照

Rasterizer/Memfill: Set the correct stencil write mask when clearing the stencil buffer.

Subv 9 年 前
コミット
743b0e71d9
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/video_core/renderer_opengl/gl_rasterizer.cpp

+ 1 - 1
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);
         GLint value_int = (config.value_32bit >> 24);
 
 
         cur_state.depth.write_mask = true;
         cur_state.depth.write_mask = true;
-        cur_state.stencil.write_mask = true;
+        cur_state.stencil.write_mask = 0xFF;
         cur_state.Apply();
         cur_state.Apply();
         glClearBufferfi(GL_DEPTH_STENCIL, 0, value_float, value_int);
         glClearBufferfi(GL_DEPTH_STENCIL, 0, value_float, value_int);
     }
     }