From e642d6609e1cb56ed8f9219843860102a745b98b Mon Sep 17 00:00:00 2001 From: assiduous Date: Sat, 25 Apr 2020 21:38:12 -0700 Subject: Updated Vulkan error handling macros --- Graphics/GraphicsEngineVulkan/include/VulkanErrors.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngineVulkan') diff --git a/Graphics/GraphicsEngineVulkan/include/VulkanErrors.hpp b/Graphics/GraphicsEngineVulkan/include/VulkanErrors.hpp index 6180a258..0497539e 100644 --- a/Graphics/GraphicsEngineVulkan/include/VulkanErrors.hpp +++ b/Graphics/GraphicsEngineVulkan/include/VulkanErrors.hpp @@ -33,7 +33,7 @@ #define CHECK_VK_ERROR(err, ...) \ { \ - if (err < 0) \ + if (err != VK_SUCCESS) \ { \ Diligent::LogError(/*IsFatal=*/false, __FUNCTION__, __FILE__, __LINE__, __VA_ARGS__, "\nVK Error: ", VulkanUtilities::VkResultToString(err)); \ UNEXPECTED("Error"); \ @@ -42,6 +42,6 @@ #define CHECK_VK_ERROR_AND_THROW(err, ...) \ { \ - if (err < 0) \ + if (err != VK_SUCCESS) \ Diligent::LogError(/*IsFatal=*/false, __FUNCTION__, __FILE__, __LINE__, __VA_ARGS__, "\nVK Error Code: ", VulkanUtilities::VkResultToString(err)); \ } -- cgit v1.2.3