File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -92,11 +92,6 @@ export component AppWindow inherits Window {
9292}
9393
9494fn main ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
95- // Temporary : Force WGPU_BACKEND to dx12 until vulkan works with the flag renderer-skia on Windows
96- unsafe {
97- std:: env:: set_var ( "WGPU_BACKEND" , "dx12" ) ;
98- }
99-
10095 let ( model_selector_sender, model_selector_receiver) = smol:: channel:: bounded :: < GLTFModel > ( 1 ) ;
10196
10297 let ( download_progress_sender, download_progress_receiver) =
Original file line number Diff line number Diff line change @@ -47,7 +47,12 @@ pub async fn run_bevy_app_with_slint(
4747 ( smol:: channel:: Receiver < wgpu:: Texture > , smol:: channel:: Sender < ControlMessage > ) ,
4848 slint:: PlatformError ,
4949> {
50- let backends = wgpu:: Backends :: from_env ( ) . unwrap_or_default ( ) ;
50+ let mut backends = wgpu:: Backends :: from_env ( ) . unwrap_or_default ( ) ;
51+
52+ // Skia’s Vulkan backend is currently broken on Windows.
53+ // See: https://github.com/slint-ui/slint/issues/9320
54+ #[ cfg( target_family = "windows" ) ]
55+ backends. remove ( wgpu:: Backends :: VULKAN ) ;
5156
5257 let bevy:: render:: settings:: RenderResources (
5358 render_device,
You can’t perform that action at this time.
0 commit comments