Don't abort on runtime's validation errors

This commit is contained in:
Patrick Nicolas
2025-08-24 21:13:16 +02:00
parent 90fa63a8fb
commit 05c8de4733
+5 -1
View File
@@ -656,6 +656,7 @@ VkBool32 application::vulkan_debug_report_callback(
}
#ifndef NDEBUG
bool my_error = true;
if (level >= spdlog::level::warn)
{
bool validation_layer_found = false;
@@ -666,10 +667,13 @@ VkBool32 application::vulkan_debug_report_callback(
if (validation_layer_found && i.library != "libVkLayer_khronos_validation.so")
spdlog::log(level, "{:#016x}: {} + {:#x}", i.pc, i.library, i.pc - i.library_base);
if (i.library == "libopenxr_loader.so")
my_error = false;
}
}
if (level >= spdlog::level::err)
if (level >= spdlog::level::err and my_error)
abort();
#endif