Browse Source

HWRasterizer: Implemented stencil op 1 (GL_ZERO)

Subv 11 năm trước cách đây
mục cha
commit
e43eb130d4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/video_core/renderer_opengl/pica_to_gl.h

+ 1 - 1
src/video_core/renderer_opengl/pica_to_gl.h

@@ -155,7 +155,7 @@ inline GLenum CompareFunc(Pica::Regs::CompareFunc func) {
 inline GLenum StencilOp(Pica::Regs::StencilAction action) {
     static const GLenum stencil_op_table[] = {
         GL_KEEP,        // StencilAction::Keep
-        GL_KEEP,
+        GL_ZERO,        // StencilAction::Zero
         GL_REPLACE,     // StencilAction::Replace
         GL_INCR,        // StencilAction::Increment
         GL_DECR,        // StencilAction::Decrement