diff options
author | K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> | 2021-06-30 01:36:15 -0700 |
---|---|---|
committer | K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> | 2021-06-30 01:38:56 -0700 |
commit | d87526b3910e2402da90275c51c0883a4654a2e1 (patch) | |
tree | 23649b52453188f020c2fdc53694836919067a8a | |
parent | 24c6ee9f560bcfa5f234a423df624f50922f929f (diff) |
Enum constant in boolean context
error: enum constant in boolean context [-Werror=int-in-bool-context]
-rw-r--r-- | drivers/vulkan/vulkan_context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vulkan/vulkan_context.cpp b/drivers/vulkan/vulkan_context.cpp index 9939611a83..74bd938822 100644 --- a/drivers/vulkan/vulkan_context.cpp +++ b/drivers/vulkan/vulkan_context.cpp @@ -1752,7 +1752,7 @@ Error VulkanContext::prepare_buffers() { print_verbose("Vulkan: Early suboptimal swapchain."); break; } else if (err != VK_SUCCESS) { - ERR_BREAK(ERR_CANT_CREATE); + ERR_BREAK_MSG(err != VK_SUCCESS, "Vulkan: Did not create swapchain successfully."); } else { w->semaphore_acquired = true; } |