diff --git a/wgpu-hal/src/gles/egl.rs b/wgpu-hal/src/gles/egl.rs index e5e2572cf1..b9da38d45f 100644 --- a/wgpu-hal/src/gles/egl.rs +++ b/wgpu-hal/src/gles/egl.rs @@ -630,6 +630,13 @@ impl Instance { .expect("Could not lock instance. This is most-likely a deadlock.") .version } + + pub fn egl_config(&self) -> khronos_egl::Config { + self.inner + .try_lock() + .expect("Could not lock instance. This is most-likely a deadlock.") + .config + } } unsafe impl Send for Instance {}