only panic when wgpu gives OutOfMemory swapchain error
This commit is contained in:
parent
e822f654e4
commit
191288771f
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue