VK_TIME_DOMAIN_MAX_ENUM_EXT may be undefined.

This commit is contained in:
Bartosz Taudul 2021-12-23 21:40:19 +01:00
parent c4c43ef7fe
commit 69c635f8bf
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -68,7 +68,7 @@ public:
if( num > 4 ) num = 4;
VkTimeDomainEXT data[4];
_vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( physdev, &num, data );
VkTimeDomainEXT supportedDomain = VK_TIME_DOMAIN_MAX_ENUM_EXT;
VkTimeDomainEXT supportedDomain = (VkTimeDomainEXT)-1;
#if defined _WIN32
supportedDomain = VK_TIME_DOMAIN_QUERY_PERFORMANCE_COUNTER_EXT;
#elif defined __linux__ && defined CLOCK_MONOTONIC_RAW