mirror of
https://github.com/storytold/winit.git
synced 2026-11-23 04:40:45 +01:00
Split creating an EGL context in two parts
This commit is contained in:
1 parent
c1ebb8cf31
commit
4eacfce59e
5 files changed
+112
-63
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user