From 53b1de07d11759bc847c80c60d68e54949685b3f Mon Sep 17 00:00:00 2001 From: ecoal95 Date: Fri, 12 Jun 2015 17:49:46 +0200 Subject: [PATCH] Implement texture_surface feature for egl This should make the android port complete. --- src/platform/with_egl/native_gl_context.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 + } + } }