print instead of panic

This commit is contained in:
Quaternions 2024-02-13 05:55:11 -08:00
parent f58a17adba
commit e7f01eff80

View File

@ -162,7 +162,10 @@ impl GraphicsState{
height=height/4*4;
wgpu::TextureFormat::Bc7RgbaUnormSrgb
},
other=>panic!("unsupported format{:?}",other),
other=>{
println!("unsupported texture format{:?}",other);
return None;
},
};
let size=wgpu::Extent3d{