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:27:42 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-02-28 21:56:42 +0100
commit4f8d152b1810bbfb2900de6520dbf9df93f9a67d (patch)
tree86fd5b428ec49cc968b6f6f7e61afed5b6099384 /src/video_core/renderer_opengl/gl_state_tracker.cpp
parentgl_state_tracker: Implement dirty flags for fragment color clamp (diff)
downloadyuzu-4f8d152b1810bbfb2900de6520dbf9df93f9a67d.tar
yuzu-4f8d152b1810bbfb2900de6520dbf9df93f9a67d.tar.gz
yuzu-4f8d152b1810bbfb2900de6520dbf9df93f9a67d.tar.bz2
yuzu-4f8d152b1810bbfb2900de6520dbf9df93f9a67d.tar.lz
yuzu-4f8d152b1810bbfb2900de6520dbf9df93f9a67d.tar.xz
yuzu-4f8d152b1810bbfb2900de6520dbf9df93f9a67d.tar.zst
yuzu-4f8d152b1810bbfb2900de6520dbf9df93f9a67d.zip
Diffstat (limited to '')
-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 538ab97e0..8bb827ac5 100644
--- a/src/video_core/renderer_opengl/gl_state_tracker.cpp
+++ b/src/video_core/renderer_opengl/gl_state_tracker.cpp
@@ -205,6 +205,12 @@ void SetupDirtyFragmentClampColor(Tables& tables) {
tables[0][OFF(frag_color_clamp)] = FragmentClampColor;
}
+void SetupDirtyPointSize(Tables& tables) {
+ tables[0][OFF(vp_point_size)] = PointSize;
+ tables[0][OFF(point_size)] = PointSize;
+ tables[0][OFF(point_sprite_enable)] = PointSize;
+}
+
void SetupDirtyMisc(Tables& tables) {
auto& table = tables[0];
@@ -241,6 +247,7 @@ void StateTracker::Initialize() {
SetupDirtyFramebufferSRGB(tables);
SetupDirtyLogicOp(tables);
SetupDirtyFragmentClampColor(tables);
+ SetupDirtyPointSize(tables);
SetupDirtyMisc(tables);
auto& store = dirty.on_write_stores;