diff --git a/crates/egui-wgpu/src/capture.rs b/crates/egui-wgpu/src/capture.rs index fee1bcf92e5..378573ff3dc 100644 --- a/crates/egui-wgpu/src/capture.rs +++ b/crates/egui-wgpu/src/capture.rs @@ -62,7 +62,7 @@ impl CaptureState { }); let (texture, padding, bind_group) = - Self::recreate_texture(device, surface_texture, &sampler, &bind_group_layout); + Self::create_texture(device, surface_texture, &sampler, &bind_group_layout); Self { padding, @@ -74,7 +74,7 @@ impl CaptureState { } } - fn recreate_texture( + fn create_texture( device: &wgpu::Device, surface_texture: &wgpu::Texture, sampler: &Sampler, @@ -118,7 +118,7 @@ impl CaptureState { /// Updates the [`CaptureState`] if the size of the surface texture has changed pub fn update(&mut self, device: &wgpu::Device, texture: &wgpu::Texture) { if self.texture.size() != texture.size() { - let (new_texture, padding, bind_group) = Self::recreate_texture( + let (new_texture, padding, bind_group) = Self::create_texture( device, texture, &self.sampler, diff --git a/crates/egui_demo_lib/tests/snapshots/demos/Screenshot.png b/crates/egui_demo_lib/tests/snapshots/demos/Screenshot.png index f2159a85f78..56978de2001 100644 --- a/crates/egui_demo_lib/tests/snapshots/demos/Screenshot.png +++ b/crates/egui_demo_lib/tests/snapshots/demos/Screenshot.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:86f72b0e6801f7d772bf6d9df42d0e74cd4295e715c823f65fe4d2fd6da3f1db -size 20977 +oid sha256:579a7a66f86ade628e9f469b0014e9010aa56312ad5bd1e8de2faaae7e0d1af6 +size 23770