From a6d8d1144c4f015e8f448b00ab885052d4f256a2 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Mon, 22 Feb 2016 21:44:08 +0100 Subject: [PATCH] rsx/common: Supports D24X8 texture format when copying Some app uses this type before setting proper depth surface --- rpcs3/Emu/RSX/Common/TextureUtils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpcs3/Emu/RSX/Common/TextureUtils.cpp b/rpcs3/Emu/RSX/Common/TextureUtils.cpp index 6b1e2dba87..f5f66b8dae 100644 --- a/rpcs3/Emu/RSX/Common/TextureUtils.cpp +++ b/rpcs3/Emu/RSX/Common/TextureUtils.cpp @@ -295,6 +295,8 @@ std::vector upload_placed_texture(gsl::span mapped_b return copy_texture_data(as_span_workaround(mapped_buffer), reinterpret_cast(pixels), w, h, depth, layer, texture.mipmap(), texture.pitch()); else return copy_texture_data(as_span_workaround(mapped_buffer), reinterpret_cast(pixels), w, h, depth, layer, texture.mipmap(), texture.pitch()); + case CELL_GCM_TEXTURE_DEPTH24_D8: // Opaque type ; ATM do not copy anything + return std::vector(); } throw EXCEPTION("Wrong format %d", format); }