mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Delete GPUPerfAPI table if GPA_GetFuncTable fails
This commit is contained in:
@@ -144,6 +144,7 @@ bool AMDCounters::Init(ApiType apiType, void *pContext)
|
||||
|
||||
if(AMD_FAILED(gpaStatus))
|
||||
{
|
||||
SAFE_DELETE(m_pGPUPerfAPI);
|
||||
RDCERR("Failed to load the GPA function entrypoint.");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user