[vulkan] Just simply exit for validation errors

With experience, I have found that trying to continue after a validation
error tends to result in a segfault or some other nastiness, and
Sys_Shutdown (and the full shutdown sequence) is triggered for any error
signal (segfault, abort, etc) so just exit(1).
This commit is contained in:
Bill Currie 2022-05-13 21:20:53 +09:00
parent f97fb90d90
commit 3639ee3d2d

View file

@ -118,6 +118,9 @@ static int message_types =
static void static void
debug_breakpoint (VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity) debug_breakpoint (VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity)
{ {
if (messageSeverity & VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT) {
exit(1);
}
} }
static VKAPI_ATTR VkBool32 VKAPI_CALL static VKAPI_ATTR VkBool32 VKAPI_CALL