Update rfb, lwjgl and fix APPLE extension build errors

This commit is contained in:
Raven Szewczyk committed 2026-02-28 14:22:58 +00:00
1 parent ec40545bf3
commit 4356f91c54
3 files changed
+14 -6

No files matched your search

@@ -14,13 +14,13 @@ public class APPLEObjectPurgeable {
public static final int GL_VOLATILE_APPLE = (int) 35354;
public static void glGetObjectParameterAPPLE(int objectType, int name, int pname, java.nio.IntBuffer params) {
org.lwjgl.opengl.APPLEObjectPurgeable.glGetObjectParameterAPPLE(objectType, name, pname, params);
org.lwjgl.opengl.APPLEObjectPurgeable.glGetObjectParameterivAPPLE(objectType, name, pname, params);
}
public static int glGetObjectParameteriAPPLE(int objectType, int name, int pname) {
try (MemoryStack ms = MemoryStack.stackPush()) {
IntBuffer val = ms.ints(1);
org.lwjgl.opengl.APPLEObjectPurgeable.glGetObjectParameterAPPLE(objectType, name, pname, val);
org.lwjgl.opengl.APPLEObjectPurgeable.glGetObjectParameterivAPPLE(objectType, name, pname, val);
return val.get(0);
}
}
@@ -1,5 +1,10 @@
package org.lwjglx.opengl;
import java.nio.ByteBuffer;
import org.lwjgl.system.MemoryUtil;
import org.lwjglx.BufferUtils;
public class APPLETextureRange {
public static final int GL_STORAGE_CACHED_APPLE = (int) 34238;
@@ -9,8 +14,11 @@ public class APPLETextureRange {
public static final int GL_TEXTURE_RANGE_POINTER_APPLE = (int) 34232;
public static final int GL_TEXTURE_STORAGE_HINT_APPLE = (int) 34236;
public static java.nio.Buffer glGetTexParameterPointervAPPLE(int arg0, int arg1, long arg2) {
return org.lwjgl.opengl.APPLETextureRange.glGetTexParameterPointervAPPLE(arg0, arg1, arg2);
public static java.nio.Buffer glGetTexParameterPointervAPPLE(int arg0, int arg1, long resultSize) {
ByteBuffer output = BufferUtils
.createByteBuffer(Math.toIntExact(resultSize * org.lwjgl.system.Pointer.POINTER_SIZE));
org.lwjgl.opengl.APPLETextureRange.nglGetTexParameterPointervAPPLE(arg0, arg1, MemoryUtil.memAddress(output));
return output;
}
public static void glTextureRangeAPPLE(int target, java.nio.ByteBuffer pointer) {