aboutsummaryrefslogtreecommitdiffstats
path: root/src/android
diff options
context:
space:
mode:
Diffstat (limited to 'src/android')
-rw-r--r--src/android/mod.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/android/mod.rs b/src/android/mod.rs
index 84d71c2..3c01b4c 100644
--- a/src/android/mod.rs
+++ b/src/android/mod.rs
@@ -62,6 +62,11 @@ impl HeadlessContext {
}
/// See the docs in the crate root file.
+ pub fn is_current(&self) -> bool {
+ unimplemented!()
+ }
+
+ /// See the docs in the crate root file.
pub fn get_proc_address(&self, _addr: &str) -> *const () {
unimplemented!()
}
@@ -312,6 +317,10 @@ impl Window {
}
}
+ pub fn is_current(&self) -> bool {
+ unsafe { ffi::egl::GetCurrentContext() == self.context }
+ }
+
pub fn get_proc_address(&self, addr: &str) -> *const () {
let addr = CString::from_slice(addr.as_bytes());
let addr = addr.as_ptr();