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

This commit is contained in:
ReinUsesLisp 2020-01-02 22:31:33 -03:00
parent 35bb9239ca
commit 3ce66776ec

View file

@ -452,6 +452,9 @@ void RasterizerOpenGL::Clear() {
if (regs.clear_flags.scissor) { if (regs.clear_flags.scissor) {
SyncScissorTest(); SyncScissorTest();
} else {
state_tracker.NotifyScissor0();
glDisablei(GL_SCISSOR_TEST, 0);
} }
// TODO(Rodrigo): Find out if blending affects clearing // TODO(Rodrigo): Find out if blending affects clearing