diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-26 05:08:11 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-26 05:08:14 +0100 |
commit | 7617e88fb2310b8a05169b699d2fa2a6a3199646 (patch) | |
tree | 9ee1955f712c8fdb8d9221682312ee57952f7108 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | gl_rasterizer: Synchronize stencil testing on clears (diff) | |
download | yuzu-7617e88fb2310b8a05169b699d2fa2a6a3199646.tar yuzu-7617e88fb2310b8a05169b699d2fa2a6a3199646.tar.gz yuzu-7617e88fb2310b8a05169b699d2fa2a6a3199646.tar.bz2 yuzu-7617e88fb2310b8a05169b699d2fa2a6a3199646.tar.lz yuzu-7617e88fb2310b8a05169b699d2fa2a6a3199646.tar.xz yuzu-7617e88fb2310b8a05169b699d2fa2a6a3199646.tar.zst yuzu-7617e88fb2310b8a05169b699d2fa2a6a3199646.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index fd96172ef..31add708f 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -1053,12 +1053,8 @@ void RasterizerOpenGL::SyncStencilTestState() { flags[Dirty::StencilTest] = false; const auto& regs = gpu.regs; - if (!regs.stencil_enable) { - glDisable(GL_STENCIL_TEST); - return; - } + oglEnable(GL_STENCIL_TEST, regs.stencil_enable); - glEnable(GL_STENCIL_TEST); glStencilFuncSeparate(GL_FRONT, MaxwellToGL::ComparisonOp(regs.stencil_front_func_func), regs.stencil_front_func_ref, regs.stencil_front_func_mask); glStencilOpSeparate(GL_FRONT, MaxwellToGL::StencilOp(regs.stencil_front_op_fail), |