From 587dedaa9e95236f891d9a0e4ec04ee3700236a8 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Fri, 7 Aug 2015 16:22:31 +0200 Subject: Correctly handle eglGetDisplay --- src/api/wayland/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/api/wayland') diff --git a/src/api/wayland/mod.rs b/src/api/wayland/mod.rs index 826826e..77ebc16 100644 --- a/src/api/wayland/mod.rs +++ b/src/api/wayland/mod.rs @@ -8,6 +8,7 @@ use self::wayland::core::shell::{ShellSurface, ShellFullscreenMethod}; use libc; use api::dlopen; +use api::egl; use api::egl::Context as EglContext; use BuilderAttribs; @@ -169,7 +170,7 @@ impl Window { try!(EglContext::new( egl, &builder, - Some(wayland_context.display.ptr() as *const _)) + egl::NativeDisplay::Wayland(Some(wayland_context.display.ptr() as *const _))) .and_then(|p| p.finish((*shell_surface).ptr() as *const _)) ) }; -- cgit v1.2.3