Split creating an EGL context in two parts

This commit is contained in:
Pierre Krieger 2015-07-18 18:32:02 +02:00
parent c1ebb8cf31
commit 4eacfce59e
5 changed files with 112 additions and 63 deletions

View file

@ -169,9 +169,9 @@ impl Window {
try!(EglContext::new(
egl,
&builder,
Some(wayland_context.display.ptr() as *const _),
(*shell_surface).ptr() as *const _
))
Some(wayland_context.display.ptr() as *const _))
.and_then(|p| p.finish((*shell_surface).ptr() as *const _))
)
};
let events = Arc::new(Mutex::new(VecDeque::new()));