diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-04-26 04:38:12 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-04-26 04:38:12 +0000 |
| commit | e642d6609e1cb56ed8f9219843860102a745b98b (patch) | |
| tree | e31899ca1ea0756d9a623370318ae6462b78389b /Graphics/GraphicsEngineVulkan | |
| parent | Improved surface orientation change detection in Vulkan swap chain (diff) | |
| download | DiligentCore-e642d6609e1cb56ed8f9219843860102a745b98b.tar.gz DiligentCore-e642d6609e1cb56ed8f9219843860102a745b98b.zip | |
Updated Vulkan error handling macros
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/include/VulkanErrors.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<false>(/*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<true>(/*IsFatal=*/false, __FUNCTION__, __FILE__, __LINE__, __VA_ARGS__, "\nVK Error Code: ", VulkanUtilities::VkResultToString(err)); \ } |
