Skip to content

Commit

Permalink
Expose egl_config (#3907)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaopengli89 authored Jul 7, 2023
1 parent 234dea1 commit 9ab44e6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wgpu-hal/src/gles/egl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand Down

0 comments on commit 9ab44e6

Please sign in to comment.