diff options
author | 2023-04-21 21:58:32 +0200 | |
---|---|---|
committer | 2023-04-21 21:58:32 +0200 | |
commit | 78924fa2998e2d158132dd5d06b2b8eea1edbc4b (patch) | |
tree | 6faabb2f8ab7b31c8265c57cb6a52c5873bc400e /examples | |
parent | 501b6b88009d912ddf8e8f205ce5ef7416dc63f4 (diff) | |
parent | cc20baad6f422271f052cf68474a4aee40dcdc82 (diff) | |
download | iced-78924fa2998e2d158132dd5d06b2b8eea1edbc4b.tar.gz iced-78924fa2998e2d158132dd5d06b2b8eea1edbc4b.tar.bz2 iced-78924fa2998e2d158132dd5d06b2b8eea1edbc4b.zip |
Merge pull request #1807 from Davidster/wgpu_16_w_glypth_20
Wgpu 0.16
Diffstat (limited to 'examples')
-rw-r--r-- | examples/integration_wgpu/src/main.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/integration_wgpu/src/main.rs b/examples/integration_wgpu/src/main.rs index 3ac458b3..15901db8 100644 --- a/examples/integration_wgpu/src/main.rs +++ b/examples/integration_wgpu/src/main.rs @@ -72,7 +72,6 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> { backends: backend, ..Default::default() }); - let surface = unsafe { instance.create_surface(&window) }?; let (format, (device, queue)) = futures::executor::block_on(async { @@ -99,9 +98,8 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> { capabilities .formats .iter() - .filter(|format| format.describe().srgb) .copied() - .next() + .find(wgpu::TextureFormat::is_srgb) .or_else(|| capabilities.formats.first().copied()) .expect("Get preferred format"), adapter |