Add is_current function
This commit is contained in:
parent
41e3328ca7
commit
689ace8b25
9 changed files with 47 additions and 0 deletions
|
|
@ -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.
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue