mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
When missing a render backend also mention the bevy_wgpu feature (#1970)
This commit is contained in:
parent
cbfb456847
commit
80df583a21
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ default = [
|
||||||
# Force dynamic linking, which improves iterative compile times
|
# Force dynamic linking, which improves iterative compile times
|
||||||
dynamic = ["bevy_dylib"]
|
dynamic = ["bevy_dylib"]
|
||||||
|
|
||||||
# Rendering support
|
# Rendering support (Also needs the bevy_wgpu feature or a third-party rendering backend)
|
||||||
render = ["bevy_internal/bevy_pbr", "bevy_internal/bevy_render", "bevy_internal/bevy_sprite", "bevy_internal/bevy_text", "bevy_internal/bevy_ui"]
|
render = ["bevy_internal/bevy_pbr", "bevy_internal/bevy_render", "bevy_internal/bevy_sprite", "bevy_internal/bevy_text", "bevy_internal/bevy_ui"]
|
||||||
|
|
||||||
# Optional bevy crates
|
# Optional bevy crates
|
||||||
|
|
|
@ -230,7 +230,7 @@ impl Plugin for RenderPlugin {
|
||||||
fn check_for_render_resource_context(context: Option<Res<Box<dyn RenderResourceContext>>>) {
|
fn check_for_render_resource_context(context: Option<Res<Box<dyn RenderResourceContext>>>) {
|
||||||
if context.is_none() {
|
if context.is_none() {
|
||||||
panic!(
|
panic!(
|
||||||
"bevy_render couldn't find a render backend. Perhaps try adding the bevy_wgpu plugin!"
|
"bevy_render couldn't find a render backend. Perhaps try adding the bevy_wgpu feature/plugin!"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue