-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[Merged by Bors] - Fix crash in headless mode #4476
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
Conversation
Is the headless_defaults file referred to somewhere else or was it missed from this PR? |
it triggers running the example in CI |
) { | ||
let render_device = match render_device { | ||
Some(render_device) => render_device, | ||
None => return, |
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.
I wish there were a nicer syntax for doing this, like a ? operator that just returns if none else unwraps it. But I’m not aware of any.
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.
Let else will help with this slightly.
bors r+ |
# Objective Fixes #4440. ## Solution Check if `RenderDevice` exists and add CI validation.
# Objective Fixes bevyengine#4440. ## Solution Check if `RenderDevice` exists and add CI validation.
# Objective Fixes bevyengine#4440. ## Solution Check if `RenderDevice` exists and add CI validation.
Objective
Fixes #4440.
Solution
Check if
RenderDevice
exists and add CI validation.