-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Regression: wgpu panic on window minimize #4097
Comments
@HackerFoo you are most likely to know where this is coming from. 🙂 We've seen this bug in the past, caused by the height being set to zero. See #2299 for links to even more similar issues. |
I'm looking into it. I was able to reproduce the bug on MacOS using:
and then shrinking the |
# Objective Fix #4097 ## Solution Return `None` from `RenderTarget::get_physical_size` if either dimension is zero.
# Objective Fix bevyengine#4097 ## Solution Return `None` from `RenderTarget::get_physical_size` if either dimension is zero.
i hit the same panic just by resizing the window when fit_canvas_to_parent is set to true.
|
# Objective Fix bevyengine#4097 ## Solution Return `None` from `RenderTarget::get_physical_size` if either dimension is zero.
Bevy version
Regression occurs in 81d57e1 as a result of #3412
This bug is not present in 0.6.1, or any commits prior to the above PR merge.
Operating system & version
Win 11
What you did
Minimize an example window.
What you expected to happen
Nothing
What actually happened
The text was updated successfully, but these errors were encountered: