diff options
Diffstat (limited to 'src/jogl/classes/jogamp')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java index 2c200b664..b577d8639 100644 --- a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java +++ b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java @@ -1052,9 +1052,10 @@ public class MacOSXCGLContext extends GLContextImpl OSXUtil.RunOnMainThread(false /* wait */, false /* kickNSApp */, cmd); } final boolean lockCGLContext; - if( null != lastSetNSViewCmd ) { - synchronized( lastSetNSViewCmd ) { - lockCGLContext = lastSetNSViewCmd.done; + final SetNSViewCmd _lastSetNSViewCmd = lastSetNSViewCmd; + if( null != _lastSetNSViewCmd ) { + synchronized( _lastSetNSViewCmd ) { + lockCGLContext = _lastSetNSViewCmd.done; if( lockCGLContext ) { lastSetNSViewCmd = null; // done, no more required } else if( DEBUG1398 ) { |