aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/android
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-09-21 10:11:32 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-09-21 12:03:57 +0200
commit3054e2ee0236672ae88bd124e60ba49aae701695 (patch)
treeb1245915338b996389bb229e54adee6f9dd9124d /src/api/android
parent3ff08d747c40c2fa744483af8717173c6e97cedd (diff)
downloadglutin-3054e2ee0236672ae88bd124e60ba49aae701695.tar.gz
glutin-3054e2ee0236672ae88bd124e60ba49aae701695.zip
Switch EGL to use only pf_reqs and opengl
Diffstat (limited to 'src/api/android')
-rw-r--r--src/api/android/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/api/android/mod.rs b/src/api/android/mod.rs
index 0f770c2..ecea9b3 100644
--- a/src/api/android/mod.rs
+++ b/src/api/android/mod.rs
@@ -112,7 +112,8 @@ impl Window {
return Err(OsError(format!("Android's native window is null")));
}
- let context = try!(EglContext::new(egl::ffi::egl::Egl, &builder, egl::NativeDisplay::Android)
+ let context = try!(EglContext::new(egl::ffi::egl::Egl, &builder.pf_reqs, &builder.opengl,
+ egl::NativeDisplay::Android)
.and_then(|p| p.finish(native_window as *const _)));
let (tx, rx) = channel();
@@ -256,7 +257,7 @@ 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, egl::NativeDisplay::Android));
- let context = try!(context.finish_pbuffer());
+ let context = try!(context.finish_pbuffer(builder.window.dimensions.unwrap_or((800, 600)))); // TODO:
Ok(HeadlessContext(context))
}
}