aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.OpenGL/Framebuffer.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-03-14 23:42:08 -0300
committerGitHub <noreply@github.com>2022-03-15 03:42:08 +0100
commite5ad1dfa48590685fd93443a2adfd8568f6c1db0 (patch)
tree4810662b088d4f553a25f293778f39861fb0326d /Ryujinx.Graphics.OpenGL/Framebuffer.cs
parent79becc4b78bd8a8402cc86a96c812cb8ac9d027a (diff)
Implement S8D24 texture format and tweak depth range detection (#2458)1.1.74
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Framebuffer.cs')
-rw-r--r--Ryujinx.Graphics.OpenGL/Framebuffer.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Framebuffer.cs b/Ryujinx.Graphics.OpenGL/Framebuffer.cs
index 76b321b7..da928b4c 100644
--- a/Ryujinx.Graphics.OpenGL/Framebuffer.cs
+++ b/Ryujinx.Graphics.OpenGL/Framebuffer.cs
@@ -127,14 +127,13 @@ namespace Ryujinx.Graphics.OpenGL
private static bool IsPackedDepthStencilFormat(Format format)
{
return format == Format.D24UnormS8Uint ||
- format == Format.D32FloatS8Uint;
+ format == Format.D32FloatS8Uint ||
+ format == Format.S8UintD24Unorm;
}
private static bool IsDepthOnlyFormat(Format format)
{
- return format == Format.D16Unorm ||
- format == Format.D24X8Unorm ||
- format == Format.D32Float;
+ return format == Format.D16Unorm || format == Format.D32Float;
}
public void Dispose()