diff options
author | gdkchan <gab.dark.100@gmail.com> | 2022-04-05 18:09:06 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-05 18:09:06 -0300 |
commit | 56c56aa34d40327cf045d7198fe0f40492a5dbc3 (patch) | |
tree | bad23d5f06cfe82998cec9435935903f229db7f1 /Ryujinx.Graphics.OpenGL/Renderer.cs | |
parent | d4b960d34807f818d2af6899f87137bef353c82e (diff) |
Do not clamp SNorm outputs to the [0, 1] range on OpenGL (#3260)1.1.90
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Renderer.cs')
-rw-r--r-- | Ryujinx.Graphics.OpenGL/Renderer.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Renderer.cs b/Ryujinx.Graphics.OpenGL/Renderer.cs index a99ecfcc..8a6b4689 100644 --- a/Ryujinx.Graphics.OpenGL/Renderer.cs +++ b/Ryujinx.Graphics.OpenGL/Renderer.cs @@ -155,6 +155,12 @@ namespace Ryujinx.Graphics.OpenGL _pipeline.Initialize(this); _counters.Initialize(); + + // This is required to disable [0, 1] clamping for SNorm outputs on compatibility profiles. + // This call is expected to fail if we're running with a core profile, + // as this clamp target was deprecated, but that's fine as a core profile + // should already have the desired behaviour were outputs are not clamped. + GL.ClampColor(ClampColorTarget.ClampFragmentColor, ClampColorMode.False); } private void PrintGpuInformation() |