diff --git a/src/graphics.rs b/src/graphics.rs index be53af1..55b2a38 100644 --- a/src/graphics.rs +++ b/src/graphics.rs @@ -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{