summaryrefslogtreecommitdiffstats
path: root/wgpu
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-04-06 06:23:29 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-04-06 06:23:29 +0200
commita699348bf3c7af5622b7cbb0b8f8b6bb9b16a22a (patch)
tree18856957ed7a680d15070c29cdd9535aea21c022 /wgpu
parent441aac25995290a83162a4728f22492ff69a5f4d (diff)
downloadiced-a699348bf3c7af5622b7cbb0b8f8b6bb9b16a22a.tar.gz
iced-a699348bf3c7af5622b7cbb0b8f8b6bb9b16a22a.tar.bz2
iced-a699348bf3c7af5622b7cbb0b8f8b6bb9b16a22a.zip
Reenable proper `present_mode` in `iced_wgpu`
Diffstat (limited to 'wgpu')
-rw-r--r--wgpu/src/window/compositor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/wgpu/src/window/compositor.rs b/wgpu/src/window/compositor.rs
index ab441fa0..d546a6dc 100644
--- a/wgpu/src/window/compositor.rs
+++ b/wgpu/src/window/compositor.rs
@@ -321,12 +321,12 @@ impl graphics::Compositor for Compositor {
&wgpu::SurfaceConfiguration {
usage: wgpu::TextureUsages::RENDER_ATTACHMENT,
format: self.format,
- present_mode: wgpu::PresentMode::Immediate,
+ present_mode: self.settings.present_mode,
width,
height,
alpha_mode: self.alpha_mode,
view_formats: vec![],
- desired_maximum_frame_latency: 0,
+ desired_maximum_frame_latency: 1,
},
);
}