mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-15 23:09:09 +00:00
rsx: Allow attempted fetch of non-existent surface
This commit is contained in:
parent
4a8a161a43
commit
f87dd91b52
1 changed files with 0 additions and 18 deletions
|
@ -761,24 +761,6 @@ namespace rsx
|
||||||
if (_It != m_depth_stencil_storage.end())
|
if (_It != m_depth_stencil_storage.end())
|
||||||
return Traits::get(_It->second);
|
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;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue