Fix android build

This commit is contained in:
Glenn Watson 2015-08-28 08:58:17 +10:00
parent 66317f5924
commit 7d43ca32bb
2 changed files with 112 additions and 98 deletions

View file

@ -257,7 +257,7 @@ impl HeadlessContext {
pub fn new(builder: BuilderAttribs) -> Result<HeadlessContext, CreationError> {
let context = try!(EglContext::new(egl::ffi::egl::Egl, &builder, egl::NativeDisplay::Android));
let context = try!(context.finish_pbuffer());
Ok(context)
Ok(HeadlessContext(context))
}
}