Explorar o código

gl_rasterizer: Disable scissor 0 when scissor is not used on clear

ReinUsesLisp %!s(int64=6) %!d(string=hai) anos
pai
achega
3ce66776ec
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/video_core/renderer_opengl/gl_rasterizer.cpp

+ 3 - 0
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