mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-28 02:30:05 +00:00
Small updates to OpenGLContext.
This commit is contained in:
parent
e90dcf51fb
commit
7436e26887
15 changed files with 114 additions and 81 deletions
|
|
@ -3232,14 +3232,20 @@ public:
|
|||
}
|
||||
|
||||
~WindowedGLContext()
|
||||
{
|
||||
ScopedXLock xlock;
|
||||
deleteContext();
|
||||
|
||||
XUnmapWindow (display, embeddedWindow);
|
||||
XDestroyWindow (display, embeddedWindow);
|
||||
}
|
||||
|
||||
void deleteContext()
|
||||
{
|
||||
makeInactive();
|
||||
|
||||
ScopedXLock xlock;
|
||||
glXDestroyContext (display, renderContext);
|
||||
|
||||
XUnmapWindow (display, embeddedWindow);
|
||||
XDestroyWindow (display, embeddedWindow);
|
||||
}
|
||||
|
||||
bool makeActive() const throw()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue