Skip to content

Commit 2f1b154

Browse files
committed
Drop old surface texture before reconfiguring
1 parent fea2bba commit 2f1b154

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend/desktop/src/ui/window.rs

+1
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ impl GfxSurface {
139139
match self.surface.get_current_texture() {
140140
Ok(frame) => {
141141
if frame.suboptimal {
142+
drop(frame);
142143
self.update_format_and_rebuild_swapchain(gfx, size);
143144
} else {
144145
break frame;

0 commit comments

Comments
 (0)