diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-12-30 04:49:19 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-28 21:56:42 +0100 |
commit | d8f5c450516c3956b422f0487293ea02620a3518 (patch) | |
tree | 06c933a0abd3679f73cbc869529952c86e71a0cc /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | gl_state_tracker: Implement dirty flags for multisample (diff) | |
download | yuzu-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 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index e4875608a..a650113ca 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -1090,8 +1090,14 @@ void RasterizerOpenGL::SyncStencilTestState() { } void RasterizerOpenGL::SyncRasterizeEnable() { - const auto& regs = system.GPU().Maxwell3D().regs; - oglEnable(GL_RASTERIZER_DISCARD, regs.rasterize_enable == 0); + auto& gpu = system.GPU().Maxwell3D(); + auto& flags = gpu.dirty.flags; + if (!flags[Dirty::RasterizeEnable]) { + return; + } + flags[Dirty::RasterizeEnable] = false; + + oglEnable(GL_RASTERIZER_DISCARD, gpu.regs.rasterize_enable == 0); } void RasterizerOpenGL::SyncColorMask() { |