diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-07-19 09:42:56 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-07-19 09:42:56 +0200 |
commit | 896640f2e0fd659e952e492c1b74841624db8d08 (patch) | |
tree | adccd7de2cc8374f432b84e921fb986988ad0679 /src/api/android | |
parent | 7d1d035d9ad5d262a67c6857596caefe957dcfda (diff) | |
parent | 4eacfce59e99e4d841255a053ce6acdc77b0c91c (diff) | |
download | glutin-896640f2e0fd659e952e492c1b74841624db8d08.tar.gz glutin-896640f2e0fd659e952e492c1b74841624db8d08.zip |
Merge pull request #523 from tomaka/egl-split
Split creating an EGL context in two parts
Diffstat (limited to 'src/api/android')
-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); |