Disable scissor before framebuffer blit

This commit is contained in:
Andy Adshead 2019-02-01 00:53:38 +00:00
commit 12af3900e5
2 changed files with 11 additions and 13 deletions

View file

@ -278,8 +278,6 @@ namespace Ryujinx.Graphics.Gal.OpenGL
{ {
forceUpdate = false; forceUpdate = false;
if (New.ScissorTestEnabled[Index] != Old.ScissorTestEnabled[Index])
{
if (New.ScissorTestEnabled[Index]) if (New.ScissorTestEnabled[Index])
{ {
// If there is only 1 scissor test geometry shaders are disables so the scissor test applies to all viewports // If there is only 1 scissor test geometry shaders are disables so the scissor test applies to all viewports
@ -297,7 +295,6 @@ namespace Ryujinx.Graphics.Gal.OpenGL
{ {
GL.Disable(IndexedEnableCap.ScissorTest, Index); GL.Disable(IndexedEnableCap.ScissorTest, Index);
} }
}
if (New.ScissorTestEnabled[Index] && if (New.ScissorTestEnabled[Index] &&
(New.ScissorTestX[Index] != Old.ScissorTestX[Index] || (New.ScissorTestX[Index] != Old.ScissorTestX[Index] ||

View file

@ -366,6 +366,7 @@ namespace Ryujinx.Graphics.Gal.OpenGL
GL.Clear(ClearBufferMask.ColorBufferBit); GL.Clear(ClearBufferMask.ColorBufferBit);
GL.Disable(EnableCap.FramebufferSrgb); GL.Disable(EnableCap.FramebufferSrgb);
GL.Disable(EnableCap.ScissorTest);
GL.BlitFramebuffer( GL.BlitFramebuffer(
SrcX0, SrcX0,