Merge pull request #50017 from fire/vulkan-error

Enum constant in boolean context
This commit is contained in:
Rémi Verschelde 2021-06-30 11:33:14 +02:00 committed by GitHub
commit aceaf3953d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}