1
0
Fork 0
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:
Julian Storer 2010-07-08 21:08:15 +01:00
parent e90dcf51fb
commit 7436e26887
15 changed files with 114 additions and 81 deletions

View file

@ -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()