diff options
| author | mageven <62494521+mageven@users.noreply.github.com> | 2020-04-07 14:49:45 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-07 19:19:45 +1000 |
| commit | 468d8f841ffcbebf4130371eb64ab04165bce3e9 (patch) | |
| tree | cc3dd0cf370f7ae3d80720a4324baf954560a8d4 /Ryujinx.Graphics.OpenGL/TextureCopy.cs | |
| parent | e99e6d0ad1fb0e0245469a67526de2dc03bc0658 (diff) | |
Simple GPU fixes (#1093)
* Implement RasterizeEnable
* Match viewport count to hardware
* Simplify ScissorTest tracking around Blits
* Disable RasterizerDiscard around Blits and track its state
* Read RasterizeEnable reg as bool and add doc
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/TextureCopy.cs')
| -rw-r--r-- | Ryujinx.Graphics.OpenGL/TextureCopy.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.OpenGL/TextureCopy.cs b/Ryujinx.Graphics.OpenGL/TextureCopy.cs index ac9459d4..59db94a4 100644 --- a/Ryujinx.Graphics.OpenGL/TextureCopy.cs +++ b/Ryujinx.Graphics.OpenGL/TextureCopy.cs @@ -41,7 +41,8 @@ namespace Ryujinx.Graphics.OpenGL GL.ReadBuffer(ReadBufferMode.ColorAttachment0); GL.DrawBuffer(DrawBufferMode.ColorAttachment0); - GL.Disable(EnableCap.ScissorTest); + GL.Disable(EnableCap.RasterizerDiscard); + GL.Disable(IndexedEnableCap.ScissorTest, 0); GL.BlitFramebuffer( srcRegion.X1, @@ -58,7 +59,8 @@ namespace Ryujinx.Graphics.OpenGL GL.BindFramebuffer(FramebufferTarget.ReadFramebuffer, oldReadFramebufferHandle); GL.BindFramebuffer(FramebufferTarget.DrawFramebuffer, oldDrawFramebufferHandle); - ((Pipeline)_renderer.Pipeline).RestoreScissorEnable(); + ((Pipeline)_renderer.Pipeline).RestoreScissor0Enable(); + ((Pipeline)_renderer.Pipeline).RestoreRasterizerDiscard(); } private static void Attach(FramebufferTarget target, Format format, int handle) |
