diff options
| author | BaronKiko <BaronKiko@users.noreply.github.com> | 2019-02-01 01:37:07 +0000 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2019-01-31 22:37:07 -0300 |
| commit | f5b4f6ccc4815cfac1fa3c103d8941a26d152d8a (patch) | |
| tree | d36fec808ddc5bab09466f79b1b172a9946d61d4 /Ryujinx.Graphics/Gal/OpenGL/OGLRenderTarget.cs | |
| parent | d191b256a6a1ce457e8bc33826fe4142e5d3de3f (diff) | |
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
Diffstat (limited to 'Ryujinx.Graphics/Gal/OpenGL/OGLRenderTarget.cs')
| -rw-r--r-- | Ryujinx.Graphics/Gal/OpenGL/OGLRenderTarget.cs | 3 |
1 files changed, 3 insertions, 0 deletions
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, |
