From 9e09de40ce9b2cb2353e22f9578428a84e9423f4 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 6 Jun 2019 17:39:14 +0100 Subject: [PATCH] Fix analytics tracking of capture features * We want these flags to be 'sticky', not to be unset if they aren't used in a capture. --- qrenderdoc/Code/CaptureContext.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/qrenderdoc/Code/CaptureContext.cpp b/qrenderdoc/Code/CaptureContext.cpp index 3e1ae351c..c7cd5c1ee 100644 --- a/qrenderdoc/Code/CaptureContext.cpp +++ b/qrenderdoc/Code/CaptureContext.cpp @@ -712,11 +712,16 @@ void CaptureContext::LoadCapture(const rdcstr &captureFile, const rdcstr &origFi ANALYTIC_ADDAVG(Performance.LoadTime, double(loadTimer.nsecsElapsed() * 1.0e-9)); #endif - ANALYTIC_SET(CaptureFeatures.ShaderLinkage, m_APIProps.ShaderLinkage); - ANALYTIC_SET(CaptureFeatures.YUVTextures, m_APIProps.YUVTextures); - ANALYTIC_SET(CaptureFeatures.SparseResources, m_APIProps.SparseResources); - ANALYTIC_SET(CaptureFeatures.MultiGPU, m_APIProps.MultiGPU); - ANALYTIC_SET(CaptureFeatures.D3D12Bundle, m_APIProps.D3D12Bundle); + if(m_APIProps.ShaderLinkage) + ANALYTIC_SET(CaptureFeatures.ShaderLinkage, true); + if(m_APIProps.YUVTextures) + ANALYTIC_SET(CaptureFeatures.YUVTextures, true); + if(m_APIProps.SparseResources) + ANALYTIC_SET(CaptureFeatures.SparseResources, true); + if(m_APIProps.MultiGPU) + ANALYTIC_SET(CaptureFeatures.MultiGPU, true); + if(m_APIProps.D3D12Bundle) + ANALYTIC_SET(CaptureFeatures.D3D12Bundle, true); if(m_APIProps.vendor != GPUVendor::Unknown) {