We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d1c9c3 commit 5c934f5Copy full SHA for 5c934f5
renderdoc/driver/d3d11/d3d11_debug.cpp
@@ -158,14 +158,21 @@ D3D11DebugManager::D3D11DebugManager(WrappedID3D11Device *wrapper)
158
159
RenderDoc::Inst().SetProgress(DebugManagerInit, 1.0f);
160
161
- AMDCounters *counters = new AMDCounters();
162
- if(counters->Init((void *)m_pDevice))
+ if(RenderDoc::Inst().IsReplayApp())
163
{
164
- m_pAMDCounters = counters;
+ AMDCounters *counters = new AMDCounters();
+ if(counters->Init((void *)m_pDevice))
165
+ {
166
+ m_pAMDCounters = counters;
167
+ }
168
+ else
169
170
+ delete counters;
171
+ m_pAMDCounters = NULL;
172
173
}
174
else
175
- delete counters;
176
m_pAMDCounters = NULL;
177
178
0 commit comments