summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_state_tracker.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-12-30 05:40:27 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-02-28 21:56:42 +0100
commita42a6e1a2c41b59a779d92a94123f38d88c3fec3 (patch)
tree47b53ff043d88de50ae4a2c40d2adb5e976a751b /src/video_core/renderer_opengl/gl_state_tracker.cpp
parentgl_state_tracker: Implement dirty flags for point sizes (diff)
downloadyuzu-a42a6e1a2c41b59a779d92a94123f38d88c3fec3.tar
yuzu-a42a6e1a2c41b59a779d92a94123f38d88c3fec3.tar.gz
yuzu-a42a6e1a2c41b59a779d92a94123f38d88c3fec3.tar.bz2
yuzu-a42a6e1a2c41b59a779d92a94123f38d88c3fec3.tar.lz
yuzu-a42a6e1a2c41b59a779d92a94123f38d88c3fec3.tar.xz
yuzu-a42a6e1a2c41b59a779d92a94123f38d88c3fec3.tar.zst
yuzu-a42a6e1a2c41b59a779d92a94123f38d88c3fec3.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state_tracker.cpp')
-rw-r--r--src/video_core/renderer_opengl/gl_state_tracker.cpp7
1 files changed, 7 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 8bb827ac5..3d64b1ea4 100644
--- a/src/video_core/renderer_opengl/gl_state_tracker.cpp
+++ b/src/video_core/renderer_opengl/gl_state_tracker.cpp
@@ -211,6 +211,12 @@ void SetupDirtyPointSize(Tables& tables) {
tables[0][OFF(point_sprite_enable)] = PointSize;
}
+void SetupDirtyClipControl(Tables& tables) {
+ auto& table = tables[0];
+ table[OFF(screen_y_control)] = ClipControl;
+ table[OFF(depth_mode)] = ClipControl;
+}
+
void SetupDirtyMisc(Tables& tables) {
auto& table = tables[0];
@@ -248,6 +254,7 @@ void StateTracker::Initialize() {
SetupDirtyLogicOp(tables);
SetupDirtyFragmentClampColor(tables);
SetupDirtyPointSize(tables);
+ SetupDirtyClipControl(tables);
SetupDirtyMisc(tables);
auto& store = dirty.on_write_stores;