summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BPStructs.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2014-02-04 20:16:03 +0100
committerdegasus <wickmarkus@web.de>2014-02-15 11:33:43 +0100
commit1f4219b5b4c5877efa12ac07d7647ed5285b288c (patch)
tree76c8c175f32292ad89fc9a7610be7e11c29cf776 /Source/Core/VideoCommon/BPStructs.cpp
parent5a660c27bc0188727c3c56f957938eda87cd89da (diff)
move perfquery enable checks into videocommon (caller side)
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
-rw-r--r--Source/Core/VideoCommon/BPStructs.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp
index 5482dae102..2434d347fa 100644
--- a/Source/Core/VideoCommon/BPStructs.cpp
+++ b/Source/Core/VideoCommon/BPStructs.cpp
@@ -423,7 +423,8 @@ void BPWritten(const BPCmd& bp)
case BPMEM_CLEAR_PIXEL_PERF:
// GXClearPixMetric writes 0xAAA here, Sunshine alternates this register between values 0x000 and 0xAAA
- g_perf_query->ResetQuery();
+ if(PerfQueryBase::ShouldEmulate())
+ g_perf_query->ResetQuery();
break;
case BPMEM_PRELOAD_ADDR: