From f87dd91b52fe7ba4692d61e1c37d772170eb5705 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Mon, 28 Dec 2020 19:59:31 +0300 Subject: [PATCH] rsx: Allow attempted fetch of non-existent surface --- rpcs3/Emu/RSX/Common/surface_store.h | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/rpcs3/Emu/RSX/Common/surface_store.h b/rpcs3/Emu/RSX/Common/surface_store.h index 266110347..61023bde9 100644 --- a/rpcs3/Emu/RSX/Common/surface_store.h +++ b/rpcs3/Emu/RSX/Common/surface_store.h @@ -761,24 +761,6 @@ namespace rsx if (_It != m_depth_stencil_storage.end()) return Traits::get(_It->second); - fmt::throw_exception("Unreachable"); - } - - surface_type get_color_surface_at(u32 address) - { - auto It = m_render_targets_storage.find(address); - if (It != m_render_targets_storage.end()) - return Traits::get(It->second); - - return nullptr; - } - - surface_type get_depth_stencil_surface_at(u32 address) - { - auto It = m_depth_stencil_storage.find(address); - if (It != m_depth_stencil_storage.end()) - return Traits::get(It->second); - return nullptr; }