diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-12-26 05:19:15 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-28 20:59:17 +0100 |
commit | 0914c70b7f9d68e71779fa32c474ed896b225704 (patch) | |
tree | 41726a0380b9f65ce626722172e69938ad095bbe /src/video_core/renderer_opengl/gl_state.cpp | |
parent | gl_state: Remove clamp framebuffer color tracking (diff) | |
download | yuzu-0914c70b7f9d68e71779fa32c474ed896b225704.tar yuzu-0914c70b7f9d68e71779fa32c474ed896b225704.tar.gz yuzu-0914c70b7f9d68e71779fa32c474ed896b225704.tar.bz2 yuzu-0914c70b7f9d68e71779fa32c474ed896b225704.tar.lz yuzu-0914c70b7f9d68e71779fa32c474ed896b225704.tar.xz yuzu-0914c70b7f9d68e71779fa32c474ed896b225704.tar.zst yuzu-0914c70b7f9d68e71779fa32c474ed896b225704.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_state.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp index f8325d6e7..bcacc5590 100644 --- a/src/video_core/renderer_opengl/gl_state.cpp +++ b/src/video_core/renderer_opengl/gl_state.cpp @@ -121,21 +121,6 @@ void OpenGLState::ApplyRasterizerDiscard() { Enable(GL_RASTERIZER_DISCARD, cur_state.rasterizer_discard, rasterizer_discard); } -void OpenGLState::ApplyColorMask() { - for (std::size_t i = 0; i < Maxwell::NumRenderTargets; ++i) { - const auto& updated = color_mask[i]; - auto& current = cur_state.color_mask[i]; - if (updated.red_enabled != current.red_enabled || - updated.green_enabled != current.green_enabled || - updated.blue_enabled != current.blue_enabled || - updated.alpha_enabled != current.alpha_enabled) { - current = updated; - glColorMaski(static_cast<GLuint>(i), updated.red_enabled, updated.green_enabled, - updated.blue_enabled, updated.alpha_enabled); - } - } -} - void OpenGLState::ApplyStencilTest() { Enable(GL_STENCIL_TEST, cur_state.stencil.test_enabled, stencil.test_enabled); @@ -311,7 +296,6 @@ void OpenGLState::Apply() { ApplyProgramPipeline(); ApplyClipDistances(); ApplyRasterizerDiscard(); - ApplyColorMask(); ApplyViewport(); ApplyStencilTest(); ApplyBlending(); |