Skip to content

Commit

Permalink
Local patch for godotengine#88879
Browse files Browse the repository at this point in the history
abort() if vulkan display lost
  • Loading branch information
eswartz committed May 28, 2024
1 parent e36b606 commit 1739cf0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions servers/rendering/rendering_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3194,6 +3194,8 @@ Error RenderingDevice::screen_prepare_for_drawing(DisplayServer::WindowID p_scre
framebuffer = driver->swap_chain_acquire_framebuffer(main_queue, it->value, resize_required);
}

if (framebuffer.id == 0)
abort();
ERR_FAIL_COND_V_MSG(framebuffer.id == 0, FAILED, "Unable to acquire framebuffer.");

// Store the framebuffer that will be used next to draw to this screen.
Expand Down

0 comments on commit 1739cf0

Please sign in to comment.