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

[Merged by Bors] - don't panic when no RenderResourceContext can be found #1971

Conversation

mockersf
Copy link
Member

@mockersf mockersf commented Apr 20, 2021

In bevy_webgl2, the RenderResourceContext is created after startup as it needs to first wait for an event from js side:
https://github.com/mrk-its/bevy_webgl2/blob/f31e5d49def7de6bfe58a47587e7ab3ca349da05/src/lib.rs#L117

remove panic introduced in #1965 and log as a warn instead

@mockersf mockersf force-pushed the dont-panic-webgl2-RenderResourceContext branch from a6facbe to dfaf6bf Compare April 20, 2021 21:43
@cart
Copy link
Member

cart commented Apr 20, 2021

bors r+

bors bot pushed a commit that referenced this pull request Apr 20, 2021
In bevy_webgl2, the `RenderResourceContext` is created after startup as it needs to first wait for an event from js side:
https://github.com/mrk-its/bevy_webgl2/blob/f31e5d49def7de6bfe58a47587e7ab3ca349da05/src/lib.rs#L117

remove `panic` introduced in #1965 and log as a `warn` instead
@bors bors bot changed the title don't panic when no RenderResourceContext can be found [Merged by Bors] - don't panic when no RenderResourceContext can be found Apr 20, 2021
@bors bors bot closed this Apr 20, 2021
ostwilkens pushed a commit to ostwilkens/bevy that referenced this pull request Jul 27, 2021
In bevy_webgl2, the `RenderResourceContext` is created after startup as it needs to first wait for an event from js side:
https://github.com/mrk-its/bevy_webgl2/blob/f31e5d49def7de6bfe58a47587e7ab3ca349da05/src/lib.rs#L117

remove `panic` introduced in bevyengine#1965 and log as a `warn` instead
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.

2 participants