summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_state_tracker.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-01-03 02:41:20 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-02-28 21:56:43 +0100
commit2eeea907138926e7d712bf20f92c1f3d1cc2d594 (patch)
treec5086c7c9394ec8a4bccc4957870720f398f28ba /src/video_core/renderer_opengl/gl_state_tracker.cpp
parentgl_rasterizer: Disable scissor 0 when scissor is not used on clear (diff)
downloadyuzu-2eeea907138926e7d712bf20f92c1f3d1cc2d594.tar
yuzu-2eeea907138926e7d712bf20f92c1f3d1cc2d594.tar.gz
yuzu-2eeea907138926e7d712bf20f92c1f3d1cc2d594.tar.bz2
yuzu-2eeea907138926e7d712bf20f92c1f3d1cc2d594.tar.lz
yuzu-2eeea907138926e7d712bf20f92c1f3d1cc2d594.tar.xz
yuzu-2eeea907138926e7d712bf20f92c1f3d1cc2d594.tar.zst
yuzu-2eeea907138926e7d712bf20f92c1f3d1cc2d594.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_state_tracker.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_state_tracker.cpp b/src/video_core/renderer_opengl/gl_state_tracker.cpp
index 3d64b1ea4..fa8733028 100644
--- a/src/video_core/renderer_opengl/gl_state_tracker.cpp
+++ b/src/video_core/renderer_opengl/gl_state_tracker.cpp
@@ -217,6 +217,10 @@ void SetupDirtyClipControl(Tables& tables) {
table[OFF(depth_mode)] = ClipControl;
}
+void SetupDirtyDepthClampEnabled(Tables& tables) {
+ tables[0][OFF(view_volume_clip_control)] = DepthClampEnabled;
+}
+
void SetupDirtyMisc(Tables& tables) {
auto& table = tables[0];
@@ -255,6 +259,7 @@ void StateTracker::Initialize() {
SetupDirtyFragmentClampColor(tables);
SetupDirtyPointSize(tables);
SetupDirtyClipControl(tables);
+ SetupDirtyDepthClampEnabled(tables);
SetupDirtyMisc(tables);
auto& store = dirty.on_write_stores;