Mac OS X: Release and clear the context from the drawable in the correct order
This commit is contained in:
parent
bc09bd11e3
commit
a9f9a38c4c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue