Fix Vulkan Instance initialized twice in ProjectDialog

This commit is contained in:
Gaktan 2024-09-14 18:20:30 +02:00
parent a1b081f45c
commit a45dd84724

View file

@ -1224,6 +1224,11 @@ void DisplayServer::_input_set_custom_mouse_cursor_func(const Ref<Resource> &p_i
bool DisplayServer::can_create_rendering_device() { bool DisplayServer::can_create_rendering_device() {
#if defined(RD_ENABLED) #if defined(RD_ENABLED)
RenderingDevice *device = RenderingDevice::get_singleton();
if (device) {
return true;
}
Error err; Error err;
RenderingContextDriver *rcd = nullptr; RenderingContextDriver *rcd = nullptr;