mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-03-17 18:55:19 +01:00
rsx/overlays: Tabs - Do not touch renderer resources on the input thread!
This commit is contained in:
parent
e26978e664
commit
7866c7195c
|
|
@ -76,9 +76,6 @@ namespace rsx::overlays
|
|||
|
||||
void tabbed_container::set_current_tab(overlay_element* view)
|
||||
{
|
||||
compiled_resources.clear();
|
||||
m_is_compiled = false;
|
||||
|
||||
m_current_view = view;
|
||||
reflow_layout();
|
||||
}
|
||||
|
|
@ -107,6 +104,8 @@ namespace rsx::overlays
|
|||
m_current_view->set_pos(x + m_headers_width, y);
|
||||
m_current_view->set_size(w - m_headers_width, h);
|
||||
}
|
||||
|
||||
refresh();
|
||||
}
|
||||
|
||||
overlay_element* tabbed_container::set_selected_tab(u32 index)
|
||||
|
|
@ -141,7 +140,8 @@ namespace rsx::overlays
|
|||
|
||||
compiled_resource& tabbed_container::get_compiled()
|
||||
{
|
||||
// TODO: Caching
|
||||
// NOTE: Caching is difficult as the subviews are themselves dynamic.
|
||||
// Doable but not worth the effort
|
||||
compiled_resources.clear();
|
||||
|
||||
if (m_tab_headers)
|
||||
|
|
|
|||
Loading…
Reference in a new issue