mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-09 01:00:51 +00:00
Detect incompatible versions of GPA, warn and fail gracefully.
This commit is contained in:
@@ -65,6 +65,15 @@ bool AMDCounters::Init(void *pContext)
|
||||
{
|
||||
getFuncTable((void **)&m_pGPUPerfAPI);
|
||||
}
|
||||
else
|
||||
{
|
||||
RDCWARN(
|
||||
"GPA version is out of date, doesn't expose GPA_GetFuncTable. Make sure you have 3.0 or "
|
||||
"above.");
|
||||
delete m_pGPUPerfAPI;
|
||||
m_pGPUPerfAPI = NULL;
|
||||
return false;
|
||||
}
|
||||
|
||||
if(m_pGPUPerfAPI->GPA_Initialize() != GPA_STATUS_OK)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user