Fixes a crash that could occur with Java 17
Additional change: added increased-memory-limit entitlement for iOS 15
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user