From 26b09e1b4d13f866a0195305c9e781da27a9b483 Mon Sep 17 00:00:00 2001 From: Gabriel Vogel Date: Tue, 24 Sep 2024 22:29:03 +0200 Subject: Include images and saved meshes when pasting `Frame` `tiny_skia::Frame` was ignoring images in `Frame::paste`, making images not show up when created in a `with_clip` context. `wgpu::Frame` similarly did not pass through meshes in its paste method, that may have been saved from a nested `with_clip` call. --- wgpu/src/geometry.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'wgpu') diff --git a/wgpu/src/geometry.rs b/wgpu/src/geometry.rs index 8e6f77d7..a27cef07 100644 --- a/wgpu/src/geometry.rs +++ b/wgpu/src/geometry.rs @@ -395,6 +395,7 @@ impl geometry::frame::Backend for Frame { } fn paste(&mut self, frame: Frame) { + self.meshes.extend(frame.meshes); self.meshes .extend(frame.buffers.into_meshes(frame.clip_bounds)); -- cgit