diff options
author | gdkchan <gab.dark.100@gmail.com> | 2022-03-14 23:42:08 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 03:42:08 +0100 |
commit | e5ad1dfa48590685fd93443a2adfd8568f6c1db0 (patch) | |
tree | 4810662b088d4f553a25f293778f39861fb0326d /Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs | |
parent | 79becc4b78bd8a8402cc86a96c812cb8ac9d027a (diff) |
Implement S8D24 texture format and tweak depth range detection (#2458)1.1.74
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs')
-rw-r--r-- | Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs b/Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs index 7811d021..9be86561 100644 --- a/Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs +++ b/Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs @@ -291,7 +291,7 @@ namespace Ryujinx.Graphics.OpenGL.Image private static ClearBufferMask GetMask(Format format) { - if (format == Format.D24UnormS8Uint || format == Format.D32FloatS8Uint) + if (format == Format.D24UnormS8Uint || format == Format.D32FloatS8Uint || format == Format.S8UintD24Unorm) { return ClearBufferMask.DepthBufferBit | ClearBufferMask.StencilBufferBit; } @@ -311,9 +311,7 @@ namespace Ryujinx.Graphics.OpenGL.Image private static bool IsDepthOnly(Format format) { - return format == Format.D16Unorm || - format == Format.D24X8Unorm || - format == Format.D32Float; + return format == Format.D16Unorm || format == Format.D32Float; } public TextureView BgraSwap(TextureView from) |