From 0a12590b6f500394194ccd7588af8c6729426d71 Mon Sep 17 00:00:00 2001 From: Wyatt Herkamp Date: Fri, 7 Oct 2022 09:03:41 -0400 Subject: Update `wgpu` to `0.14` and `wgpu_glyph` to `0.18` --- examples/integration_wgpu/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples/integration_wgpu/src/main.rs') diff --git a/examples/integration_wgpu/src/main.rs b/examples/integration_wgpu/src/main.rs index 69d46c3e..ed03f77a 100644 --- a/examples/integration_wgpu/src/main.rs +++ b/examples/integration_wgpu/src/main.rs @@ -16,6 +16,7 @@ use winit::{ event_loop::{ControlFlow, EventLoop}, }; +use crate::wgpu::CompositeAlphaMode; #[cfg(target_arch = "wasm32")] use wasm_bindgen::JsCast; #[cfg(target_arch = "wasm32")] @@ -119,6 +120,7 @@ pub fn main() { width: physical_size.width, height: physical_size.height, present_mode: wgpu::PresentMode::AutoVsync, + alpha_mode: CompositeAlphaMode::Auto, }, ); @@ -213,6 +215,7 @@ pub fn main() { width: size.width, height: size.height, present_mode: wgpu::PresentMode::AutoVsync, + alpha_mode: CompositeAlphaMode::Auto }, ); -- cgit