summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_state.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-10-30 04:23:09 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-11-07 05:52:18 +0100
commitf019817f8f6452dec784d8217ef102231319d26c (patch)
treed49542f0b9b4c26c651d1a3263b3a165c6a8b24b /src/video_core/renderer_opengl/gl_state.cpp
parentMerge pull request #3078 from bunnei/azure-rename-partial (diff)
downloadyuzu-f019817f8f6452dec784d8217ef102231319d26c.tar
yuzu-f019817f8f6452dec784d8217ef102231319d26c.tar.gz
yuzu-f019817f8f6452dec784d8217ef102231319d26c.tar.bz2
yuzu-f019817f8f6452dec784d8217ef102231319d26c.tar.lz
yuzu-f019817f8f6452dec784d8217ef102231319d26c.tar.xz
yuzu-f019817f8f6452dec784d8217ef102231319d26c.tar.zst
yuzu-f019817f8f6452dec784d8217ef102231319d26c.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.cpp')
-rw-r--r--src/video_core/renderer_opengl/gl_state.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp
index f25148362..ccbe5912e 100644
--- a/src/video_core/renderer_opengl/gl_state.cpp
+++ b/src/video_core/renderer_opengl/gl_state.cpp
@@ -410,6 +410,12 @@ 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);
+ }
+}
+
void OpenGLState::ApplyTextures() {
if (const auto update = UpdateArray(cur_state.textures, textures)) {
glBindTextures(update->first, update->second, textures.data() + update->first);
@@ -453,6 +459,7 @@ void OpenGLState::Apply() {
ApplyImages();
ApplyPolygonOffset();
ApplyAlphaTest();
+ ApplyClipControl();
}
void OpenGLState::EmulateViewportWithScissor() {