diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-01-03 02:41:20 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-28 21:56:43 +0100 |
commit | 2eeea907138926e7d712bf20f92c1f3d1cc2d594 (patch) | |
tree | c5086c7c9394ec8a4bccc4957870720f398f28ba /src/video_core/renderer_opengl/gl_state_tracker.cpp | |
parent | gl_rasterizer: Disable scissor 0 when scissor is not used on clear (diff) | |
download | yuzu-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.cpp | 5 |
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; |