mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
[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:
parent
f97fb90d90
commit
3639ee3d2d
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue