Detect incompatible versions of GPA, warn and fail gracefully.

This commit is contained in:
baldurk
2017-10-04 15:44:18 +01:00
parent 73e41e532b
commit 16b8a4795b
@@ -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)
{