diff options
Diffstat (limited to 'src/headless.rs')
-rw-r--r-- | src/headless.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/headless.rs b/src/headless.rs index a38c194..5106a7b 100644 --- a/src/headless.rs +++ b/src/headless.rs @@ -77,6 +77,12 @@ impl HeadlessContext { pub unsafe fn make_current(&self) { self.context.make_current() } + + /// Returns true if this context is the current one in this thread. + #[inline] + pub fn is_current(&self) -> bool { + self.context.is_current() + } /// Returns the address of an OpenGL function. /// |