summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_state_tracker.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-12-30 04:49:19 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-02-28 21:56:42 +0100
commitd8f5c450516c3956b422f0487293ea02620a3518 (patch)
tree06c933a0abd3679f73cbc869529952c86e71a0cc /src/video_core/renderer_opengl/gl_state_tracker.cpp
parentgl_state_tracker: Implement dirty flags for multisample (diff)
downloadyuzu-d8f5c450516c3956b422f0487293ea02620a3518.tar
yuzu-d8f5c450516c3956b422f0487293ea02620a3518.tar.gz
yuzu-d8f5c450516c3956b422f0487293ea02620a3518.tar.bz2
yuzu-d8f5c450516c3956b422f0487293ea02620a3518.tar.lz
yuzu-d8f5c450516c3956b422f0487293ea02620a3518.tar.xz
yuzu-d8f5c450516c3956b422f0487293ea02620a3518.tar.zst
yuzu-d8f5c450516c3956b422f0487293ea02620a3518.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 c979046a3..ebfb1945f 100644
--- a/src/video_core/renderer_opengl/gl_state_tracker.cpp
+++ b/src/video_core/renderer_opengl/gl_state_tracker.cpp
@@ -189,6 +189,10 @@ void SetupDirtyMultisampleControl(Tables& tables) {
FillBlock(tables[0], OFF(multisample_control), NUM(multisample_control), MultisampleControl);
}
+void SetupDirtyRasterizeEnable(Tables& tables) {
+ tables[0][OFF(rasterize_enable)] = RasterizeEnable;
+}
+
void SetupDirtyMisc(Tables& tables) {
auto& table = tables[0];
@@ -221,6 +225,7 @@ void StateTracker::Initialize() {
SetupDirtyPrimitiveRestart(tables);
SetupDirtyPolygonOffset(tables);
SetupDirtyMultisampleControl(tables);
+ SetupDirtyRasterizeEnable(tables);
SetupDirtyMisc(tables);
auto& store = dirty.on_write_stores;