-
Notifications
You must be signed in to change notification settings - Fork 927
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
hal/gles: fix index buffer state not being reset in reset_state #2391
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
Thank you! Do you require this patch on crates? |
I do not, but I personally think it's a good idea / would appreciate it. Some factors I'm thinking about are:
But I don't fully understand the full chain from bevy code to the crash this fixes or how rare the situation might be. |
If it's an ordeal, at least the issue is a bit more discoverable now and bevy still seems to be compatible with wgpu up to this commit so users can simply patch wgpu. |
We will definitely release a patch for this. No need to align any release schedules. |
Oh, probably not very urgent at all. |
published in wgpu-hal-0.12.3 |
Thanks! |
Connections
Fixes #2378
Description
See discussion in #2378 for the full background.
This fixes a webgl2 crash that I have been experiencing. The old gfx gl implementation that hal/gles is based on did the same thing and this seemingly was an unintentional omission when porting it.
Testing
Tested webgl examples that are expected to work
I observed some unpleasant flickering in cube both with and without these changes.