diff options
author | Juan Linietsky <reduzio@gmail.com> | 2019-10-05 10:27:43 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2020-02-11 12:03:49 +0100 |
commit | 6ee2f5e6b6663f5a4987954d43bb6df6d1f62d2a (patch) | |
tree | bef9b4f01f535c8736874199b2fbd928e1000d73 /drivers/vulkan/vulkan_context.cpp | |
parent | 6075c5f9bf6cf3362c51e0915555361d34954215 (diff) | |
download | redot-engine-6ee2f5e6b6663f5a4987954d43bb6df6d1f62d2a.tar.gz |
More GIProbe work and fixes
Diffstat (limited to 'drivers/vulkan/vulkan_context.cpp')
-rw-r--r-- | drivers/vulkan/vulkan_context.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/vulkan/vulkan_context.cpp b/drivers/vulkan/vulkan_context.cpp index 34ce79ab02..b6edf5f079 100644 --- a/drivers/vulkan/vulkan_context.cpp +++ b/drivers/vulkan/vulkan_context.cpp @@ -29,6 +29,7 @@ /*************************************************************************/ #include "vulkan_context.h" +#include "core/engine.h" #include "core/print_string.h" #include "core/project_settings.h" #include "core/version.h" @@ -36,6 +37,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> + #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) #define VULKAN_DEBUG(m_text) print_line(m_text) #define APP_SHORT_NAME "GodotEngine" @@ -121,7 +123,9 @@ VKAPI_ATTR VkBool32 VKAPI_CALL VulkanContext::_debug_messenger_callback(VkDebugU free(message); - // abort(); + if (Engine::get_singleton()->is_abort_on_gpu_errors_enabled()) { + abort(); + } // Don't bail out, but keep going. return false; } |