overlays: Fix perf_metrics_overlay visibility

Also change auto type to compiled_resource in order to silence a warning about accidental copy by value
This commit is contained in:
Megamouse authored and Ivan committed 2021-02-23 13:27:54 +03:00
1 parent 663b2c9c5e
commit e91df31f8c
1 file changed
+6 -1
@@ -555,7 +555,12 @@ namespace rsx
compiled_resource perf_metrics_overlay::get_compiled()
{
auto compiled_resources = m_body.get_compiled();
if (!visible)
{
return {};
}
compiled_resource compiled_resources = m_body.get_compiled();
compiled_resources.add(m_titles.get_compiled());