summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-04-26 04:38:12 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-04-26 04:38:12 +0000
commite642d6609e1cb56ed8f9219843860102a745b98b (patch)
treee31899ca1ea0756d9a623370318ae6462b78389b /Graphics/GraphicsEngineVulkan
parentImproved surface orientation change detection in Vulkan swap chain (diff)
downloadDiligentCore-e642d6609e1cb56ed8f9219843860102a745b98b.tar.gz
DiligentCore-e642d6609e1cb56ed8f9219843860102a745b98b.zip
Updated Vulkan error handling macros
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/include/VulkanErrors.hpp4
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)); \
}