From e1183f6919c01275822aedc3c5f1c4b959e986c4 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Fri, 12 Jun 2020 19:49:14 +0300 Subject: [PATCH] gl: Fix depth buffer byteswap hint - uint24_8 is not actually swapped, it is decoded in a special way --- rpcs3/Emu/RSX/GL/GLRenderTargets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/GL/GLRenderTargets.cpp b/rpcs3/Emu/RSX/GL/GLRenderTargets.cpp index e9d10464d8..07646e0965 100644 --- a/rpcs3/Emu/RSX/GL/GLRenderTargets.cpp +++ b/rpcs3/Emu/RSX/GL/GLRenderTargets.cpp @@ -358,7 +358,7 @@ void GLGSRender::init_buffers(rsx::framebuffer_creation_context context, bool sk m_gl_texture_cache.lock_memory_region( cmd, m_rtts.m_bound_depth_stencil.second, surface_range, true, m_depth_surface_info.width, m_depth_surface_info.height, m_depth_surface_info.pitch, - depth_format_gl.format, depth_format_gl.type, true); + depth_format_gl.format, depth_format_gl.type, depth_format_gl.type != gl::texture::type::uint_24_8); } else {