diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-03-05 23:18:20 +0100 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-03-06 05:16:20 +0100 |
commit | c58bc25d5b97e3d0e8393abd529dcb213a3ab277 (patch) | |
tree | d451d9e54f1c39418066a444908f248c8209bab5 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #1459 from MerryMage/dsp-firmware-hash (diff) | |
download | yuzu-c58bc25d5b97e3d0e8393abd529dcb213a3ab277.tar yuzu-c58bc25d5b97e3d0e8393abd529dcb213a3ab277.tar.gz yuzu-c58bc25d5b97e3d0e8393abd529dcb213a3ab277.tar.bz2 yuzu-c58bc25d5b97e3d0e8393abd529dcb213a3ab277.tar.lz yuzu-c58bc25d5b97e3d0e8393abd529dcb213a3ab277.tar.xz yuzu-c58bc25d5b97e3d0e8393abd529dcb213a3ab277.tar.zst yuzu-c58bc25d5b97e3d0e8393abd529dcb213a3ab277.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, 4 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 0f864b617..b3dc6aa19 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -887,8 +887,10 @@ void RasterizerOpenGL::SyncStencilTest() { void RasterizerOpenGL::SyncDepthTest() { const auto& regs = Pica::g_state.regs; - state.depth.test_enabled = (regs.output_merger.depth_test_enable == 1); - state.depth.test_func = PicaToGL::CompareFunc(regs.output_merger.depth_test_func); + state.depth.test_enabled = regs.output_merger.depth_test_enable == 1 || + regs.output_merger.depth_write_enable == 1; + state.depth.test_func = regs.output_merger.depth_test_enable == 1 ? + PicaToGL::CompareFunc(regs.output_merger.depth_test_func) : GL_ALWAYS; state.color_mask.red_enabled = regs.output_merger.red_enable; state.color_mask.green_enabled = regs.output_merger.green_enable; state.color_mask.blue_enabled = regs.output_merger.blue_enable; |