From d97a9f99705c85ec2a753524f96657313487e70b Mon Sep 17 00:00:00 2001 From: Victor Brekenfeld Date: Wed, 7 Jul 2021 20:24:43 +0200 Subject: [PATCH] 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. --- src/backend/egl/display.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/backend/egl/display.rs b/src/backend/egl/display.rs index c264b61..44a649a 100644 --- a/src/backend/egl/display.rs +++ b/src/backend/egl/display.rs @@ -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 { + self.display.clone() + } + /// Returns the runtime egl version of this display pub fn get_egl_version(&self) -> (i32, i32) { self.egl_version