Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix swap chain errors when application starts minimized. #88289

Merged
merged 1 commit into from
May 17, 2024

Conversation

DarioSamo
Copy link
Contributor

@DarioSamo DarioSamo commented Feb 13, 2024

This effectively supersedes #85256, as it moves the error checking earlier to be consistent with the other method. It also removes an unnecessary resize call during screen creation which the bug made me realize is not actually necessary at all because resizing is delegated already to the first acquisition of the frame buffer image that is performed.

I think it's a fairly low risk merge but it might be a good idea to double-check on other platforms that taking out the resize doesn't break anything (it shouldn't as no drawing code goes through without preparing the screen for drawing first, which performs the resize if needed).

Bugsquad edit:

…Skip resizing swap chain during screen creation as it's not necessary and can fail when it starts minimized.
@akien-mga akien-mga merged commit d3e2615 into godotengine:master May 17, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Starting game in a minimized window causes Vulkan errors
3 participants