From 69c635f8bf63617913b2b995af241f4d2d1ce0de Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 23 Dec 2021 21:40:19 +0100 Subject: [PATCH] VK_TIME_DOMAIN_MAX_ENUM_EXT may be undefined. --- TracyVulkan.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TracyVulkan.hpp b/TracyVulkan.hpp index e7a19ca1..447f9736 100644 --- a/TracyVulkan.hpp +++ b/TracyVulkan.hpp @@ -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