diff options
| author | Scott Mansell <phiren@gmail.com> | 2023-01-29 23:57:37 +1300 |
|---|---|---|
| committer | Scott Mansell <phiren@gmail.com> | 2023-01-31 19:41:24 +1300 |
| commit | 8bc8e43dd66e80bd061735d4f113e226250fe254 (patch) | |
| tree | 011051c6ac00fc1eea3d321a76e9c8a8c9bdddf4 /Source/Core/VideoCommon | |
| parent | 3c73707dfe8dfb99edab6b8f2b2847160abddaf5 (diff) | |
Add virtual Initialize() to PerfQueryBase
Both DX12 and Vulkan already had one.
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/PerfQueryBase.h | 2 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/VideoBackendBase.cpp | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/PerfQueryBase.h b/Source/Core/VideoCommon/PerfQueryBase.h index 9671c33ec3..183a27c80c 100644 --- a/Source/Core/VideoCommon/PerfQueryBase.h +++ b/Source/Core/VideoCommon/PerfQueryBase.h @@ -34,6 +34,8 @@ public: PerfQueryBase() : m_query_count(0) {} virtual ~PerfQueryBase() {} + virtual bool Initialize() { return true; } + // Checks if performance queries are enabled in the gameini configuration. // NOTE: Called from CPU+GPU thread static bool ShouldEmulate(); diff --git a/Source/Core/VideoCommon/VideoBackendBase.cpp b/Source/Core/VideoCommon/VideoBackendBase.cpp index 3814cc3690..5119ba5ed1 100644 --- a/Source/Core/VideoCommon/VideoBackendBase.cpp +++ b/Source/Core/VideoCommon/VideoBackendBase.cpp @@ -371,9 +371,9 @@ bool VideoBackendBase::InitializeShared(std::unique_ptr<AbstractGfx> gfx, TMEM::Init(); if (!g_vertex_manager->Initialize() || !g_shader_cache->Initialize() || - !g_renderer->Initialize() || !g_presenter->Initialize() || - !g_framebuffer_manager->Initialize() || !g_texture_cache->Initialize() || - !g_bounding_box->Initialize()) + !g_perf_query->Initialize() || !g_renderer->Initialize() || + !g_presenter->Initialize() || !g_framebuffer_manager->Initialize() || + !g_texture_cache->Initialize() || !g_bounding_box->Initialize()) { PanicAlertFmtT("Failed to initialize renderer classes"); Shutdown(); |
