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 panic due to missing swapchain texture. #141

Merged
merged 2 commits into from Jan 15, 2023

Conversation

connerebbinghaus
Copy link
Contributor

Fixes #136.

Because of some driver quirks, Bevy will ignore swapchain timeouts on some devices, as mentioned in bevyengine/bevy#5957. When this occurs, extracted_window.swap_chain_texture will be None.

Bevy handles this by bailing out of the render node early (see here), and this fix is implemented in the same way.

@mvlabat
Copy link
Owner

mvlabat commented Jan 15, 2023

Thank you for the fix! I'll release it soon.

@mvlabat mvlabat merged commit 2b0fe6c into mvlabat:main Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Encountered a panic
2 participants