From 80df583a212b287bb664680ce648f6abc7183367 Mon Sep 17 00:00:00 2001 From: MinerSebas Date: Tue, 20 Apr 2021 21:04:09 +0000 Subject: [PATCH] When missing a render backend also mention the bevy_wgpu feature (#1970) --- Cargo.toml | 2 +- crates/bevy_render/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d2f1b6c864..217249920a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 diff --git a/crates/bevy_render/src/lib.rs b/crates/bevy_render/src/lib.rs index 1a9b293b95..f500272eac 100644 --- a/crates/bevy_render/src/lib.rs +++ b/crates/bevy_render/src/lib.rs @@ -230,7 +230,7 @@ impl Plugin for RenderPlugin { fn check_for_render_resource_context(context: Option>>) { 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!" ) } }