From 0c6015035e3293df96e0a797a6a610fb2b31001e Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Mon, 25 Mar 2024 07:17:43 +0100 Subject: [PATCH] Fix defines --- vulkanDeviceInfo.cpp | 4 +++- vulkanDeviceInfo.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/vulkanDeviceInfo.cpp b/vulkanDeviceInfo.cpp index 913840c..ba1ae0a 100644 --- a/vulkanDeviceInfo.cpp +++ b/vulkanDeviceInfo.cpp @@ -783,7 +783,7 @@ void VulkanDeviceInfo::readPlatformDetails() void VulkanDeviceInfo::readProfiles() { -#if not defined(DISABLE_PROFILES) +#if !defined(DISABLE_PROFILES) qInfo() << "Reading profiles"; std::vector availableProfiles{}; @@ -804,6 +804,8 @@ void VulkanDeviceInfo::readProfiles() profileInfo.supported = supported; profiles.push_back(profileInfo); } +#else + qInfo() << "Profiles disabled at build time"; #endif } diff --git a/vulkanDeviceInfo.h b/vulkanDeviceInfo.h index ce769f2..2b63a7f 100644 --- a/vulkanDeviceInfo.h +++ b/vulkanDeviceInfo.h @@ -56,7 +56,7 @@ #endif #include "vulkanandroid.h" -#if not defined(DISABLE_PROFILES) +#if !defined(DISABLE_PROFILES) #include "vulkan_profiles.hpp" #endif