diff options
| author | 2023-04-20 21:28:47 -0400 | |
|---|---|---|
| committer | 2023-04-20 21:28:47 -0400 | |
| commit | 8122904ca46b73ceda54bd73bd68cf4138d22f1b (patch) | |
| tree | 20756b590307a74e0c352ccbd50df3c134c63c3f /examples/integration_wgpu | |
| parent | 99fc717b7c268abe49b1000d9f111b12562aafcf (diff) | |
| download | iced-8122904ca46b73ceda54bd73bd68cf4138d22f1b.tar.gz iced-8122904ca46b73ceda54bd73bd68cf4138d22f1b.tar.bz2 iced-8122904ca46b73ceda54bd73bd68cf4138d22f1b.zip | |
wgpu 0.16
Diffstat (limited to '')
| -rw-r--r-- | examples/integration_wgpu/src/main.rs | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/examples/integration_wgpu/src/main.rs b/examples/integration_wgpu/src/main.rs index 3ac458b3..7b9f4d4c 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,7 +98,7 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {              capabilities                  .formats                  .iter() -                .filter(|format| format.describe().srgb) +                .filter(|format| format.is_srgb())                  .copied()                  .next()                  .or_else(|| capabilities.formats.first().copied()) | 
