From eacc2929caf27cded597bf15ef837980dd568e68 Mon Sep 17 00:00:00 2001 From: Connor Fitzgerald Date: Sat, 19 Feb 2022 00:42:41 -0500 Subject: [PATCH] Fix emscripten (#2494) --- wgpu-hal/src/gles/egl.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wgpu-hal/src/gles/egl.rs b/wgpu-hal/src/gles/egl.rs index c660c0648b..1c3f545a87 100644 --- a/wgpu-hal/src/gles/egl.rs +++ b/wgpu-hal/src/gles/egl.rs @@ -677,9 +677,7 @@ impl crate::Instance for Instance { (display, Some(Arc::new(library)), WindowKind::AngleX11) } else if client_ext_str.contains("EGL_MESA_platform_surfaceless") { log::info!("No windowing system present. Using surfaceless platform"); - let egl = egl - .upcast::() - .expect("Failed to get EGL 1.5 for surfaceless"); + let egl = egl1_5.expect("Failed to get EGL 1.5 for surfaceless"); let display = egl .get_platform_display( EGL_PLATFORM_SURFACELESS_MESA,