Skip to content

DesignCraft: An open-source page and layout design editor written by scratch in pure Rust

Graphics: the start-up log says which backend was chosen and how to change it

Hamzae572a5316f28
diff --git a/apps/designcraft/src/gpu/backend.rs b/apps/designcraft/src/gpu/backend.rs
index 0a3cda618..57073768c 100644
--- a/apps/designcraft/src/gpu/backend.rs
+++ b/apps/designcraft/src/gpu/backend.rs
@@ -231,7 +231,10 @@ impl Fallback {
choice.backend.name(),
choice.record.failed
),
- None => log::info!("graphics: {} (WGPU_BACKEND overrides)", choice.backend.name()),
+ // `begin` returns before this when `WGPU_BACKEND` is set, so reaching here means it is
+ // not: the message said the opposite, which reads in a log as though the user's
+ // environment had chosen the backend (#1343).
+ None => log::info!("graphics: {} (first choice; set WGPU_BACKEND to choose another)", choice.backend.name()),
}
let instance = instance_backends(choice.backend, &choice.record.failed);
Some(Fallback { backend: choice.backend, switched_from: choice.switched_from, instance, path, record: choice.record })