1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

Fixes crash if Vulkan presentation surface is not available.

This commit is contained in:
bruvzg
2020-11-14 13:41:13 +02:00
parent ffbaf71550
commit f09a37a8d5
2 changed files with 6 additions and 1 deletions

View File

@@ -707,7 +707,8 @@ Error VulkanContext::_window_create(DisplayServer::WindowID p_window_id, VkSurfa
// We use a single GPU, but we need a surface to initialize the
// queues, so this process must be deferred until a surface
// is created.
_initialize_queues(p_surface);
Error err = _initialize_queues(p_surface);
ERR_FAIL_COND_V(err != OK, ERR_CANT_CREATE);
}
Window window;