--- old/src/macosx/native/sun/java2d/opengl/CGLLayer.m 2012-02-01 03:45:17.000000000 -0800 +++ new/src/macosx/native/sun/java2d/opengl/CGLLayer.m 2012-02-01 03:45:16.000000000 -0800 @@ -53,7 +53,7 @@ if (self == nil) return self; javaLayer = layer; - + // NOTE: async=YES means that the layer is re-cached periodically self.asynchronous = FALSE; self.autoresizingMask = kCALayerWidthSizable | kCALayerHeightSizable; @@ -69,7 +69,7 @@ JNIEnv *env = [ThreadUtilities getJNIEnv]; (*env)->DeleteGlobalRef(env, javaLayer); javaLayer = NULL; - + [super dealloc]; } @@ -148,7 +148,7 @@ AWT_ASSERT_NOT_APPKIT_THREAD; jobject javaLayer = (*env)->NewGlobalRef(env, obj); - + [JNFRunLoop performOnMainThreadWaiting:YES withBlock:^(){ AWT_ASSERT_APPKIT_THREAD; @@ -174,9 +174,9 @@ layer.textureWidth = oglsdo->width; layer.textureHeight = oglsdo->height; } else { - layer.textureID = 0; + layer.textureID = 0; } -} +} // Must be called on the AppKit thread and under the RQ lock. JNIEXPORT void JNICALL