native-player: use display handle tech

This commit is contained in:
2026-03-19 11:14:40 -07:00
parent 7cf6b5eaab
commit 957d4b7fe9

View File

@@ -15,7 +15,8 @@ pub async fn setup_and_start(title:&str){
println!("Initializing the surface...");
let instance=setup::step1::create_instance();
let desc=wgpu::InstanceDescriptor::new_with_display_handle_from_env(Box::new(event_loop.owned_display_handle()));
let instance=wgpu::Instance::new(desc);
let surface=setup::step2::create_surface(&instance,&window).unwrap();