Skip to content

Commit d471d0b

Browse files
committed
Update GL device detection
1 parent 6dbb68b commit d471d0b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Src/GPUPerfAPIGL/GPUPerfAPIGL.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,11 @@ GPA_Status GPA_IMP_GetHWInfo(void* pContext, GPA_HWInfo* pHwInfo)
720720
}
721721
}
722722

723-
pHwInfo->UpdateRevisionIdBasedOnDeviceIDAndName();
723+
if (!pHwInfo->UpdateRevisionIdBasedOnDeviceIDAndName())
724+
{
725+
// We didn't find a revision Id, set it to REVISION_ID_ANY
726+
pHwInfo->SetRevisionID(REVISION_ID_ANY);
727+
}
724728

725729
return GPA_STATUS_OK;
726730
}

0 commit comments

Comments
 (0)