mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 23:14:19 +00:00
Buffer checking code
This commit is contained in:
parent
ecc62164e8
commit
e2f13953d2
7 changed files with 91 additions and 78 deletions
|
|
@ -40,7 +40,7 @@ package org.lwjgl.opengl;
|
|||
|
||||
import java.nio.*;
|
||||
|
||||
public class GL15 extends GL14 {
|
||||
public abstract class GL15 extends GL14 {
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// ---------------------- ARB_vertex_buffer_object ----------------------
|
||||
|
|
@ -205,7 +205,7 @@ public class GL15 extends GL14 {
|
|||
public static native boolean glUnmapBuffer(int target);
|
||||
|
||||
public static void glGetBufferParameter(int target, int pname, IntBuffer params) {
|
||||
// TODO:check buffer size
|
||||
BufferChecks.checkBuffer(params);
|
||||
nglGetBufferParameteriv(target, pname, params, params.position());
|
||||
}
|
||||
|
||||
|
|
@ -274,7 +274,7 @@ public class GL15 extends GL14 {
|
|||
|
||||
// ---------------------------
|
||||
public static void glGetQueryObjecti(int id, int pname, IntBuffer params) {
|
||||
// TODO: check buffer size
|
||||
BufferChecks.checkBuffer(params);
|
||||
nglGetQueryObjectiv(id, pname, params, params.position());
|
||||
}
|
||||
|
||||
|
|
@ -286,7 +286,7 @@ public class GL15 extends GL14 {
|
|||
|
||||
// ---------------------------
|
||||
public static void glGetQueryObjectui(int id, int pname, IntBuffer params) {
|
||||
// TODO: check buffer size
|
||||
BufferChecks.checkBuffer(params);
|
||||
nglGetQueryObjectuiv(id, pname, params, params.position());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue