Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

8260000: Remove JNF_COCOA_ENTER/EXIT usage from MTLGraphicsConfig.m

  • Loading branch information
aghaisas committed Jan 19, 2021
1 parent 729546e commit 1aeed78423886f1b2bed2182306ac625bb80f99c
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLGraphicsConfig.m
@@ -115,7 +115,7 @@
(JNIEnv *env, jclass mtlgc, jint displayID, jstring shadersLibName)
{
jboolean ret = JNI_FALSE;
JNF_COCOA_ENTER(env);
JNI_COCOA_ENTER(env);
NSMutableArray * retArray = [NSMutableArray arrayWithCapacity:3];
[retArray addObject: [NSNumber numberWithInt: (int)displayID]];
[retArray addObject: [NSString stringWithUTF8String: JNU_GetStringPlatformChars(env, shadersLibName, 0)]];
@@ -126,7 +126,7 @@
}
NSNumber * num = (NSNumber *)[retArray objectAtIndex: 0];
ret = (jboolean)[num boolValue];
JNF_COCOA_EXIT(env);
JNI_COCOA_EXIT(env);
return ret;
}

0 comments on commit 1aeed78

Please sign in to comment.