Skip to content

Commit

Permalink
Drop old surface texture before reconfiguring
Browse files Browse the repository at this point in the history
  • Loading branch information
kelpsyberry committed Mar 29, 2024
1 parent fea2bba commit 2f1b154
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/desktop/src/ui/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2f1b154

Please sign in to comment.