diff options
Diffstat (limited to 'src/api/android/mod.rs')
-rw-r--r-- | src/api/android/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/android/mod.rs b/src/api/android/mod.rs index 1649772..b5fac08 100644 --- a/src/api/android/mod.rs +++ b/src/api/android/mod.rs @@ -111,8 +111,8 @@ impl Window { return Err(OsError(format!("Android's native window is null"))); } - let context = try!(EglContext::new(egl::ffi::egl::Egl, &builder, None, - native_window as *const _)); + let context = try!(EglContext::new(egl::ffi::egl::Egl, &builder, None) + .and_then(|p| p.finish(native_window as *const _))); let (tx, rx) = channel(); android_glue::add_sender(tx); |