From e5ad1dfa48590685fd93443a2adfd8568f6c1db0 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Mon, 14 Mar 2022 23:42:08 -0300 Subject: Implement S8D24 texture format and tweak depth range detection (#2458) --- Ryujinx.Graphics.OpenGL/Framebuffer.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Ryujinx.Graphics.OpenGL/Framebuffer.cs') 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() -- cgit v1.2.3