summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-01-03 02:31:33 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-02-28 21:56:43 +0100
commit3ce66776eccc23a3c1af69ce6ce079e28361fd58 (patch)
tree0cc60ec74779b753b543beeb67df5df7e6562949 /src/video_core
parentgl_rasterizer: Notify depth mask changes on clear (diff)
downloadyuzu-3ce66776eccc23a3c1af69ce6ce079e28361fd58.tar
yuzu-3ce66776eccc23a3c1af69ce6ce079e28361fd58.tar.gz
yuzu-3ce66776eccc23a3c1af69ce6ce079e28361fd58.tar.bz2
yuzu-3ce66776eccc23a3c1af69ce6ce079e28361fd58.tar.lz
yuzu-3ce66776eccc23a3c1af69ce6ce079e28361fd58.tar.xz
yuzu-3ce66776eccc23a3c1af69ce6ce079e28361fd58.tar.zst
yuzu-3ce66776eccc23a3c1af69ce6ce079e28361fd58.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index c8aa342ef..e035be867 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -452,6 +452,9 @@ void RasterizerOpenGL::Clear() {
if (regs.clear_flags.scissor) {
SyncScissorTest();
+ } else {
+ state_tracker.NotifyScissor0();
+ glDisablei(GL_SCISSOR_TEST, 0);
}
// TODO(Rodrigo): Find out if blending affects clearing