diff options
author | tfarley <tfarleygithub@gmail.com> | 2015-05-29 03:41:37 +0200 |
---|---|---|
committer | tfarley <tfarleygithub@gmail.com> | 2015-06-09 01:18:17 +0200 |
commit | d42275f11cc53000fead76b7c695fb370d19e56d (patch) | |
tree | 351cd273da23c232bde19e49ca2f389dc1cb4dd0 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #848 from lioncash/ldm (diff) | |
download | yuzu-d42275f11cc53000fead76b7c695fb370d19e56d.tar yuzu-d42275f11cc53000fead76b7c695fb370d19e56d.tar.gz yuzu-d42275f11cc53000fead76b7c695fb370d19e56d.tar.bz2 yuzu-d42275f11cc53000fead76b7c695fb370d19e56d.tar.lz yuzu-d42275f11cc53000fead76b7c695fb370d19e56d.tar.xz yuzu-d42275f11cc53000fead76b7c695fb370d19e56d.tar.zst yuzu-d42275f11cc53000fead76b7c695fb370d19e56d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index d31c46cca..2f55bfd76 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -652,6 +652,10 @@ 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.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; + state.color_mask.alpha_enabled = regs.output_merger.alpha_enable; state.depth.write_mask = regs.output_merger.depth_write_enable ? GL_TRUE : GL_FALSE; } |