summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D12/D3D12PerfQuery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoBackends/D3D12/D3D12PerfQuery.cpp')
-rw-r--r--Source/Core/VideoBackends/D3D12/D3D12PerfQuery.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/D3D12/D3D12PerfQuery.cpp b/Source/Core/VideoBackends/D3D12/D3D12PerfQuery.cpp
index a6c466b646..17cb1da2d3 100644
--- a/Source/Core/VideoBackends/D3D12/D3D12PerfQuery.cpp
+++ b/Source/Core/VideoBackends/D3D12/D3D12PerfQuery.cpp
@@ -245,8 +245,8 @@ void PerfQuery::AccumulateQueriesFromBuffer(u32 query_count)
// NOTE: Reported pixel metrics should be referenced to native resolution
const u64 native_res_result = static_cast<u64>(result) * EFB_WIDTH /
- g_renderer->GetTargetWidth() * EFB_HEIGHT /
- g_renderer->GetTargetHeight();
+ g_framebuffer_manager->GetEFBWidth() * EFB_HEIGHT /
+ g_framebuffer_manager->GetEFBHeight();
m_results[entry.query_group].fetch_add(static_cast<u32>(native_res_result),
std::memory_order_relaxed);
}