Add virtual Initialize() to PerfQueryBase

Both DX12 and Vulkan already had one.
This commit is contained in:
Scott Mansell
2023-01-29 23:57:37 +13:00
parent 3c73707dfe
commit 8bc8e43dd6
5 changed files with 9 additions and 18 deletions

View File

@ -239,19 +239,8 @@ bool VideoBackend::Initialize(const WindowSystemInfo& wsi)
auto perf_query = std::make_unique<PerfQuery>();
auto bounding_box = std::make_unique<VKBoundingBox>();
if (!InitializeShared(std::move(gfx), std::move(vertex_manager), std::move(perf_query),
std::move(bounding_box)))
{
return false;
}
if (!PerfQuery::GetInstance()->Initialize())
{
PanicAlertFmt("Failed to initialize PerfQuery");
return false;
}
return true;
return !InitializeShared(std::move(gfx), std::move(vertex_manager), std::move(perf_query),
std::move(bounding_box));
}
void VideoBackend::Shutdown()