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:
parent
81b78edb26
commit
d97a9f9970
|
@ -403,6 +403,11 @@ impl EGLDisplay {
|
|||
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
|
||||
pub fn get_egl_version(&self) -> (i32, i32) {
|
||||
self.egl_version
|
||||
|
|
Loading…
Reference in New Issue