mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 23:14:19 +00:00
Fixed VBO checks and disabled BufferChecks (for now)
This commit is contained in:
parent
4658cc1c77
commit
547e50ed2d
14 changed files with 106 additions and 82 deletions
|
|
@ -113,22 +113,22 @@ public class ARBVertexProgram extends ARBProgram {
|
|||
public static native void glVertexAttrib4NubARB(int index, byte x, byte y, byte z, byte w);
|
||||
|
||||
public static void glVertexAttribPointerARB(int index, int size, boolean unsigned, boolean normalized, int stride, ByteBuffer buffer) {
|
||||
BufferChecks.ensureVBOdisabled();
|
||||
BufferChecks.ensureArrayVBOdisabled();
|
||||
nglVertexAttribPointerARB(index, size, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, normalized, stride, buffer, buffer.position());
|
||||
}
|
||||
|
||||
public static void glVertexAttribPointerARB(int index, int size, boolean unsigned, boolean normalized, int stride, ShortBuffer buffer) {
|
||||
BufferChecks.ensureVBOdisabled();
|
||||
BufferChecks.ensureArrayVBOdisabled();
|
||||
nglVertexAttribPointerARB(index, size, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, normalized, stride, buffer, buffer.position() << 1);
|
||||
}
|
||||
|
||||
public static void glVertexAttribPointerARB(int index, int size, boolean normalized, int stride, FloatBuffer buffer) {
|
||||
BufferChecks.ensureVBOdisabled();
|
||||
BufferChecks.ensureArrayVBOdisabled();
|
||||
nglVertexAttribPointerARB(index, size, GL11.GL_FLOAT, normalized, stride, buffer, buffer.position() << 2);
|
||||
}
|
||||
|
||||
public static void glVertexAttribPointerARB(int index, int size, boolean unsigned, boolean normalized, int stride, IntBuffer buffer) {
|
||||
BufferChecks.ensureVBOdisabled();
|
||||
BufferChecks.ensureArrayVBOdisabled();
|
||||
nglVertexAttribPointerARB(index, size, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, normalized, stride, buffer, buffer.position() << 2);
|
||||
}
|
||||
|
||||
|
|
@ -136,7 +136,7 @@ public class ARBVertexProgram extends ARBProgram {
|
|||
|
||||
// ---------------------------
|
||||
public static void glVertexAttribPointerARB(int index, int size, int type, boolean normalized, int stride, int bufferOffset) {
|
||||
BufferChecks.ensureVBOenabled();
|
||||
BufferChecks.ensureArrayVBOenabled();
|
||||
nglVertexAttribPointerARBVBO(index, size, type, normalized, stride, bufferOffset);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue