diff --git a/renderdoc/driver/gl/gl_counters.cpp b/renderdoc/driver/gl/gl_counters.cpp index 7a565ab64..82d9eb1a3 100644 --- a/renderdoc/driver/gl/gl_counters.cpp +++ b/renderdoc/driver/gl/gl_counters.cpp @@ -566,6 +566,8 @@ rdcarray GLReplay::FetchCounters(const rdcarray &allC std::copy_if(allCounters.begin(), allCounters.end(), std::back_inserter(counters), [](const GPUCounter &c) { return IsGenericCounter(c); }); + m_pDriver->SetFetchCounters(true); + if(m_pAMDCounters) { // Filter out the AMD counters @@ -602,6 +604,8 @@ rdcarray GLReplay::FetchCounters(const rdcarray &allC ret = FetchCountersARM(armCounters); } + m_pDriver->SetFetchCounters(false); + if(counters.empty()) { return ret;