Fixes a crash that could occur with Java 17

Additional change: added increased-memory-limit entitlement for iOS 15
This commit is contained in:
Duy Tran Khanh committed 2022-08-14 09:05:17 +07:00
1 parent 8e848efc29
commit cf8a5609c0
3 files changed
+6 -5

No files matched your search

@@ -893,13 +893,10 @@ public class GLFW
public static GLFWVidMode.Buffer glfwGetVideoModes(@NativeType("GLFWmonitor *") long monitor) {
MemoryStack stack = stackGet();
int stackPointer = stack.getPointer();
IntBuffer count = stack.callocInt(1);
try {
// long __result = nglfwGetVideoModes(monitor, memAddress(count));
long __result = memAddress(stack.callocLong(1));
GLFWVidMode.Buffer buffer = GLFWVidMode.createSafe(__result, 1);
buffer.put(glfwGetVideoMode(monitor));
return buffer;
long __result = glfwGetVideoMode(monitor).address();
return GLFWVidMode.createSafe(__result, 1);;
} finally {
stack.setPointer(stackPointer);
}
+2
View File
@@ -3,6 +3,8 @@
<dict>
<key>com.apple.developer.kernel.extended-virtual-addressing</key>
<true/>
<key>com.apple.developer.kernel.increased-memory-limit</key>
<true/>
<key>com.apple.private.security.container-required</key>
<true/>
<key>com.apple.security.exception.files.absolute-path.read-write</key>
+2
View File
@@ -3,5 +3,7 @@
<dict>
<key>com.apple.developer.kernel.extended-virtual-addressing</key>
<true/>
<key>com.apple.developer.kernel.increased-memory-limit</key>
<true/>
</dict>
</plist>