1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-21 01:24:21 +00:00

OpenGL tweaks.

This commit is contained in:
Julian Storer 2010-07-09 10:01:02 +01:00
parent 7436e26887
commit fe92227a4d
6 changed files with 41 additions and 6 deletions

View file

@ -3244,8 +3244,12 @@ public:
{
makeInactive();
ScopedXLock xlock;
glXDestroyContext (display, renderContext);
if (renderContext != 0)
{
ScopedXLock xlock;
glXDestroyContext (display, renderContext);
renderContext = 0;
}
}
bool makeActive() const throw()