mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 10:01:15 +00:00
Handle error when setting boot image if swap chain is not available. Skip resizing swap chain during screen creation as it's not necessary and can fail when it starts minimized.
This commit is contained in:
parent
e92d55bbf4
commit
fc8ec5d8a9
2 changed files with 5 additions and 4 deletions
|
|
@ -3164,9 +3164,6 @@ Error RenderingDevice::screen_create(DisplayServer::WindowID p_screen) {
|
|||
RDD::SwapChainID swap_chain = driver->swap_chain_create(surface);
|
||||
ERR_FAIL_COND_V_MSG(swap_chain.id == 0, ERR_CANT_CREATE, "Unable to create swap chain.");
|
||||
|
||||
Error err = driver->swap_chain_resize(main_queue, swap_chain, _get_swap_chain_desired_count());
|
||||
ERR_FAIL_COND_V_MSG(err != OK, ERR_CANT_CREATE, "Unable to resize the new swap chain.");
|
||||
|
||||
screen_swap_chains[p_screen] = swap_chain;
|
||||
|
||||
return OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue