From a45dd84724bab0eea2bf58ab2b7c8b9e67c378c3 Mon Sep 17 00:00:00 2001 From: Gaktan Date: Sat, 14 Sep 2024 18:20:30 +0200 Subject: [PATCH] Fix Vulkan Instance initialized twice in ProjectDialog --- servers/display_server.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/servers/display_server.cpp b/servers/display_server.cpp index 12456fc8282..86b4016da8b 100644 --- a/servers/display_server.cpp +++ b/servers/display_server.cpp @@ -1224,6 +1224,11 @@ void DisplayServer::_input_set_custom_mouse_cursor_func(const Ref &p_i bool DisplayServer::can_create_rendering_device() { #if defined(RD_ENABLED) + RenderingDevice *device = RenderingDevice::get_singleton(); + if (device) { + return true; + } + Error err; RenderingContextDriver *rcd = nullptr;