diff --git a/frontend/desktop/src/ui/window.rs b/frontend/desktop/src/ui/window.rs index 1378ade..7ecd001 100644 --- a/frontend/desktop/src/ui/window.rs +++ b/frontend/desktop/src/ui/window.rs @@ -139,6 +139,7 @@ impl GfxSurface { match self.surface.get_current_texture() { Ok(frame) => { if frame.suboptimal { + drop(frame); self.update_format_and_rebuild_swapchain(gfx, size); } else { break frame;