Skip to content

Commit 7068c55

Browse files
committed
[update] resize to handle the swapchain not being applied correctly.
1 parent b07a245 commit 7068c55

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lambda/src/core/render/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,9 @@ impl RenderContext {
329329
.with_size(width, height)
330330
.build(&self.gpu, &self.surface);
331331
Rc::get_mut(&mut self.surface)
332-
.expect("Failed to acquire the surface to resize during")
333-
.apply_swapchain(&self.gpu, swapchain, 1_000_000_000);
332+
.expect("Failed to acquire the surface while attempting to resize.")
333+
.apply_swapchain(&self.gpu, swapchain, 1_000_000_000)
334+
.expect("Failed to apply the swapchain to the surface while attempting to resize.");
334335
}
335336
}
336337

0 commit comments

Comments
 (0)