Split creating an EGL context in two parts

This commit is contained in:
Pierre Krieger committed 2015-07-18 18:43:23 +02:00
1 parent c1ebb8cf31
commit 4eacfce59e
5 files changed
+112 -63

No files matched your search

+2 -2
View File
@@ -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);