summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-06-30 11:33:14 +0200
committerGitHub <noreply@github.com>2021-06-30 11:33:14 +0200
commitaceaf3953d5c251de75326058d23e44c6d116c7f (patch)
tree6e52ad28131b2d8a8573a8307abff31dc1293588
parent4622bef4191e719c5040f6c5011e74ea991822c7 (diff)
parentd87526b3910e2402da90275c51c0883a4654a2e1 (diff)
Merge pull request #50017 from fire/vulkan-error
Enum constant in boolean context
-rw-r--r--drivers/vulkan/vulkan_context.cpp2
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;
}