diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-12-10 22:33:49 +0100 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-12-11 00:51:46 +0100 |
commit | 7ffb672f6178cc18fe70f3c798a55298ba275be5 (patch) | |
tree | 82e494fd45cf84d676b1e0b3c88e08bc0ce17300 /src/video_core/renderer_opengl/gl_state.cpp | |
parent | Merge pull request #3208 from ReinUsesLisp/vk-shader-decompiler (diff) | |
download | yuzu-7ffb672f6178cc18fe70f3c798a55298ba275be5.tar yuzu-7ffb672f6178cc18fe70f3c798a55298ba275be5.tar.gz yuzu-7ffb672f6178cc18fe70f3c798a55298ba275be5.tar.bz2 yuzu-7ffb672f6178cc18fe70f3c798a55298ba275be5.tar.lz yuzu-7ffb672f6178cc18fe70f3c798a55298ba275be5.tar.xz yuzu-7ffb672f6178cc18fe70f3c798a55298ba275be5.tar.zst yuzu-7ffb672f6178cc18fe70f3c798a55298ba275be5.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_state.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp index 39b3986d3..ccc1e050a 100644 --- a/src/video_core/renderer_opengl/gl_state.cpp +++ b/src/video_core/renderer_opengl/gl_state.cpp @@ -411,8 +411,9 @@ void OpenGLState::ApplyAlphaTest() { } void OpenGLState::ApplyClipControl() { - if (UpdateValue(cur_state.clip_control.origin, clip_control.origin)) { - glClipControl(clip_control.origin, GL_NEGATIVE_ONE_TO_ONE); + if (UpdateTie(std::tie(cur_state.clip_control.origin, cur_state.clip_control.depth_mode), + std::tie(clip_control.origin, clip_control.depth_mode))) { + glClipControl(clip_control.origin, clip_control.depth_mode); } } |