aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/android
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/android')
-rw-r--r--src/api/android/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/android/mod.rs b/src/api/android/mod.rs
index 1b52cc0..0f770c2 100644
--- a/src/api/android/mod.rs
+++ b/src/api/android/mod.rs
@@ -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))
}
}