egl: Fix egl display handle visibility

Currently there is no way to get the raw handle of an `EGLDisplay`, but
this can be necessary for implementing additional egl platforms out-of-tree.
This commit is contained in:
Victor Brekenfeld 2021-07-07 20:24:43 +02:00
parent 81b78edb26
commit d97a9f9970
1 changed files with 5 additions and 0 deletions

View File

@ -403,6 +403,11 @@ impl EGLDisplay {
Ok((desc, config_id)) Ok((desc, config_id))
} }
/// Get a handle to the underlying native EGLDisplay
pub fn get_display_handle(&self) -> Arc<EGLDisplayHandle> {
self.display.clone()
}
/// Returns the runtime egl version of this display /// Returns the runtime egl version of this display
pub fn get_egl_version(&self) -> (i32, i32) { pub fn get_egl_version(&self) -> (i32, i32) {
self.egl_version self.egl_version