Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmerlin committed Dec 12, 2024
1 parent c438a03 commit 289559a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions crates/egui-wgpu/src/capture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -74,7 +74,7 @@ impl CaptureState {
}
}

fn recreate_texture(
fn create_texture(
device: &wgpu::Device,
surface_texture: &wgpu::Texture,
sampler: &Sampler,
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions crates/egui_demo_lib/tests/snapshots/demos/Screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 289559a

Please sign in to comment.