aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/wayland
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-08-07 16:49:42 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-08-07 16:49:42 +0200
commit90e62083d686ed9c878beb348e9b54853242eab0 (patch)
tree86e5ba50cdab22fb225aa3b2178d9e04779809ec /src/api/wayland
parent4ab83a23e5d15ac4372ad24cc88f1c970099efc7 (diff)
parent587dedaa9e95236f891d9a0e4ec04ee3700236a8 (diff)
downloadglutin-90e62083d686ed9c878beb348e9b54853242eab0.tar.gz
glutin-90e62083d686ed9c878beb348e9b54853242eab0.zip
Merge pull request #566 from tomaka/display-egl
Correct EGL display handling
Diffstat (limited to 'src/api/wayland')
-rw-r--r--src/api/wayland/mod.rs3
1 files changed, 2 insertions, 1 deletions
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 _))
)
};