From f5b4f6ccc4815cfac1fa3c103d8941a26d152d8a Mon Sep 17 00:00:00 2001 From: BaronKiko Date: Fri, 1 Feb 2019 01:37:07 +0000 Subject: Scissor test fix (#563) * Handle negative viewport coordinates * Disable scissor before framebuffer blit * Comment to explain scissor disable will be reenabled if needed * Comma and spelling mistake --- Ryujinx.Graphics/Gal/OpenGL/OGLRenderTarget.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Ryujinx.Graphics/Gal/OpenGL/OGLRenderTarget.cs') diff --git a/Ryujinx.Graphics/Gal/OpenGL/OGLRenderTarget.cs b/Ryujinx.Graphics/Gal/OpenGL/OGLRenderTarget.cs index ce5364e1..0d7bb3cd 100644 --- a/Ryujinx.Graphics/Gal/OpenGL/OGLRenderTarget.cs +++ b/Ryujinx.Graphics/Gal/OpenGL/OGLRenderTarget.cs @@ -367,6 +367,9 @@ namespace Ryujinx.Graphics.Gal.OpenGL GL.Disable(EnableCap.FramebufferSrgb); + // Will be re-enabled if needed while binding, called before any game GL calls + GL.Disable(EnableCap.ScissorTest); + GL.BlitFramebuffer( SrcX0, SrcY0, -- cgit v1.2.3