mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
rsx: Allow attempted fetch of non-existent surface
This commit is contained in:
parent
4a8a161a43
commit
f87dd91b52
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user