From 4eacfce59e99e4d841255a053ce6acdc77b0c91c Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Sat, 18 Jul 2015 18:32:02 +0200 Subject: Split creating an EGL context in two parts --- src/api/android/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/api/android') 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); -- cgit v1.2.3