Mac OS X: Release and clear the context from the drawable in the correct order

This commit is contained in:
Elias Naur 2007-08-30 18:27:12 +00:00
parent bc09bd11e3
commit a9f9a38c4c
1 changed files with 1 additions and 1 deletions

View File

@ -277,8 +277,8 @@ public final class Display {
}
try {
if (context != null && context.isCurrent()) {
context.releaseDrawable();
Context.releaseCurrentContext();
context.releaseDrawable();
}
} catch (LWJGLException e) {
LWJGLUtil.log("Exception occurred while trying to release context: " + e);