diff --git a/Cargo.toml b/Cargo.toml index 8207fa5..c3f8b89 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,10 +8,10 @@ repository = "https://github.com/grovesNL/glyphon" license = "MIT OR Apache-2.0 OR Zlib" [dependencies] -wgpu = "0.13.1" +wgpu = "0.14.0" fontdue = { git = "https://github.com/mooman219/fontdue", rev = "828b4f4" } etagere = "0.2.6" [dev-dependencies] -winit = "0.26.1" +winit = "0.27.0" pollster = "0.2.5" diff --git a/examples/hello-world.rs b/examples/hello-world.rs index 47df576..ac854de 100644 --- a/examples/hello-world.rs +++ b/examples/hello-world.rs @@ -7,8 +7,8 @@ use glyphon::{ Color, HasColor, Resolution, TextAtlas, TextOverflow, TextRenderer, }; use wgpu::{ - Backends, CommandEncoderDescriptor, DeviceDescriptor, Features, Instance, Limits, LoadOp, - Operations, PresentMode, RenderPassColorAttachment, RenderPassDescriptor, + Backends, CommandEncoderDescriptor, CompositeAlphaMode, DeviceDescriptor, Features, Instance, + Limits, LoadOp, Operations, PresentMode, RenderPassColorAttachment, RenderPassDescriptor, RequestAdapterOptions, SurfaceConfiguration, TextureUsages, TextureViewDescriptor, }; use winit::{ @@ -64,6 +64,7 @@ async fn run() { width: size.width, height: size.height, present_mode: PresentMode::Mailbox, + alpha_mode: CompositeAlphaMode::Opaque, }; surface.configure(&device, &config);