mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 15:04:41 +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
|
|
@ -381,7 +381,7 @@ public class NVVertexProgram extends NVProgram {
|
|||
|
||||
public static void glVertexAttribPointerNV(int index, int size, boolean unsigned, int stride, ByteBuffer buffer) {
|
||||
|
||||
BufferChecks.ensureVBOdisabled();
|
||||
BufferChecks.ensureArrayVBOdisabled();
|
||||
|
||||
nglVertexAttribPointerNV(
|
||||
index,
|
||||
|
|
@ -395,8 +395,8 @@ public class NVVertexProgram extends NVProgram {
|
|||
|
||||
public static void glVertexAttribPointerNV(int index, int size, boolean unsigned, int stride, ShortBuffer buffer) {
|
||||
|
||||
BufferChecks.ensureVBOdisabled();
|
||||
|
||||
BufferChecks.ensureArrayVBOdisabled();
|
||||
|
||||
nglVertexAttribPointerNV(
|
||||
index,
|
||||
size,
|
||||
|
|
@ -409,16 +409,16 @@ public class NVVertexProgram extends NVProgram {
|
|||
|
||||
public static void glVertexAttribPointerNV(int index, int size, int stride, FloatBuffer buffer) {
|
||||
|
||||
BufferChecks.ensureVBOdisabled();
|
||||
|
||||
BufferChecks.ensureArrayVBOdisabled();
|
||||
|
||||
nglVertexAttribPointerNV(index, size, GL11.GL_FLOAT, stride, buffer, buffer.position() << 2);
|
||||
|
||||
}
|
||||
|
||||
public static void glVertexAttribPointerNV(int index, int size, boolean unsigned, int stride, IntBuffer buffer) {
|
||||
|
||||
BufferChecks.ensureVBOdisabled();
|
||||
|
||||
BufferChecks.ensureArrayVBOdisabled();
|
||||
|
||||
nglVertexAttribPointerNV(
|
||||
index,
|
||||
size,
|
||||
|
|
@ -441,8 +441,8 @@ public class NVVertexProgram extends NVProgram {
|
|||
|
||||
public static void glVertexAttribPointerNV(int index, int size, int type, int stride, int bufferOffset) {
|
||||
|
||||
BufferChecks.ensureVBOenabled();
|
||||
|
||||
BufferChecks.ensureArrayVBOenabled();
|
||||
|
||||
nglVertexAttribPointerNVVBO(index, size, type, stride, bufferOffset);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue