Browse Source

Fix Vulkan Instance initialized twice in ProjectDialog

Gaktan 11 months ago
parent
commit
a45dd84724
1 changed files with 5 additions and 0 deletions
  1. 5 0
      servers/display_server.cpp

+ 5 - 0
servers/display_server.cpp

@@ -1224,6 +1224,11 @@ void DisplayServer::_input_set_custom_mouse_cursor_func(const Ref<Resource> &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;