diff --git a/src/platform/with_egl/native_gl_context.rs b/src/platform/with_egl/native_gl_context.rs index f887712..4b71b80 100644 --- a/src/platform/with_egl/native_gl_context.rs +++ b/src/platform/with_egl/native_gl_context.rs @@ -3,6 +3,9 @@ use platform::NativeGLContextMethods; use platform::with_egl::utils::{create_pixel_buffer_backed_offscreen_context}; use egl::egl::{self, EGLint, EGLDisplay, EGLSurface, EGLConfig, EGLContext}; +#[cfg(feature="texture_surface")] +use layers::platform::surface::NativeGraphicsMetadata; + pub struct NativeGLContext { native_display: EGLDisplay, native_surface: EGLSurface, @@ -103,4 +106,11 @@ impl NativeGLContextMethods for NativeGLContext { Ok(()) } } + + #[cfg(feature="texture_surface")] + fn get_metadata(&self) -> NativeGraphicsMetadata { + NativeGraphicsMetadata { + display: self.native_display + } + } }