only panic when wgpu gives OutOfMemory swapchain error

This commit is contained in:
Billy Messenger 2021-07-22 12:38:56 -05:00
parent e822f654e4
commit 191288771f

View file

@ -192,7 +192,7 @@ impl iced_graphics::window::Compositor for Compositor {
} }
Err(error) => match error { Err(error) => match error {
wgpu::SwapChainError::OutOfMemory => { wgpu::SwapChainError::OutOfMemory => {
panic!("Swapchain error: {:?}", error); panic!("Wgpu swapchain error: {:?}", error);
} }
_ => { _ => {
// Try again next frame. // Try again next frame.