From e8baf181e98eac0ca26d73632723403804f08590 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Tue, 27 Aug 2024 20:39:58 -0400 Subject: [PATCH] fix: compile `raw-gles` example again --- wgpu-hal/examples/raw-gles.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wgpu-hal/examples/raw-gles.rs b/wgpu-hal/examples/raw-gles.rs index 1048d3ca47e..0bbd1e79e8b 100644 --- a/wgpu-hal/examples/raw-gles.rs +++ b/wgpu-hal/examples/raw-gles.rs @@ -71,7 +71,9 @@ fn main() { // Glutin tries to create an OpenGL context by default. Force it to use any version of GLES. let context_attributes = glutin::context::ContextAttributesBuilder::new() // WGPU expects GLES 3.0+. - .with_context_api(glutin::context::ContextApi::Gles(Some(Version::new(3, 0)))) + .with_context_api(glutin::context::ContextApi::Gles(Some( + glutin::context::Version::new(3, 0), + ))) .build(raw_window_handle); let mut not_current_gl_context = Some(unsafe {