Don't abort on runtime's validation errors
This commit is contained in:
@@ -656,6 +656,7 @@ VkBool32 application::vulkan_debug_report_callback(
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
|
bool my_error = true;
|
||||||
if (level >= spdlog::level::warn)
|
if (level >= spdlog::level::warn)
|
||||||
{
|
{
|
||||||
bool validation_layer_found = false;
|
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")
|
if (validation_layer_found && i.library != "libVkLayer_khronos_validation.so")
|
||||||
spdlog::log(level, "{:#016x}: {} + {:#x}", i.pc, i.library, i.pc - i.library_base);
|
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();
|
abort();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user