aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/android
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-08-07 16:22:31 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-08-07 16:22:31 +0200
commit587dedaa9e95236f891d9a0e4ec04ee3700236a8 (patch)
tree86e5ba50cdab22fb225aa3b2178d9e04779809ec /src/api/android
parentbee3e0e0f0ed4b642afaa6d82389839e87c840f0 (diff)
downloadglutin-587dedaa9e95236f891d9a0e4ec04ee3700236a8.tar.gz
glutin-587dedaa9e95236f891d9a0e4ec04ee3700236a8.zip
Correctly handle eglGetDisplay
Diffstat (limited to 'src/api/android')
-rw-r--r--src/api/android/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/android/mod.rs b/src/api/android/mod.rs
index 7c09a7b..1b52cc0 100644
--- a/src/api/android/mod.rs
+++ b/src/api/android/mod.rs
@@ -112,7 +112,7 @@ impl Window {
return Err(OsError(format!("Android's native window is null")));
}
- let context = try!(EglContext::new(egl::ffi::egl::Egl, &builder, None)
+ let context = try!(EglContext::new(egl::ffi::egl::Egl, &builder, egl::NativeDisplay::Android)
.and_then(|p| p.finish(native_window as *const _)));
let (tx, rx) = channel();
@@ -255,7 +255,7 @@ pub struct HeadlessContext(EglContext);
impl HeadlessContext {
/// See the docs in the crate root file.
pub fn new(builder: BuilderAttribs) -> Result<HeadlessContext, CreationError> {
- let context = try!(EglContext::new(egl::ffi::egl::Egl, &builder, None));
+ let context = try!(EglContext::new(egl::ffi::egl::Egl, &builder, egl::NativeDisplay::Android));
let context = try!(context.finish_pbuffer());
Ok(context)
}