When missing a render backend also mention the bevy_wgpu feature (#1970)

This commit is contained in:
MinerSebas 2021-04-20 21:04:09 +00:00
parent cbfb456847
commit 80df583a21
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ default = [
# Force dynamic linking, which improves iterative compile times
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"]
# Optional bevy crates

View file

@ -230,7 +230,7 @@ impl Plugin for RenderPlugin {
fn check_for_render_resource_context(context: Option<Res<Box<dyn RenderResourceContext>>>) {
if context.is_none() {
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!"
)
}
}