mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 23:44:06 +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
|
|
@ -343,20 +343,20 @@ public abstract class GL12 extends GL11 {
|
|||
}
|
||||
private static native void nglGetSeparableFilter(int target, int format, int type, Buffer row, int row_offset, Buffer column, int column_offset, Buffer span, int span_offset);
|
||||
public static void glDrawRangeElements(int mode, int start, int end, ByteBuffer indices) {
|
||||
BufferChecks.ensureVBOdisabled();
|
||||
BufferChecks.ensureElementVBOdisabled();
|
||||
nglDrawRangeElements(mode, start, end, indices.remaining(), GL_UNSIGNED_BYTE, indices, indices.position());
|
||||
}
|
||||
public static void glDrawRangeElements(int mode, int start, int end, ShortBuffer indices) {
|
||||
BufferChecks.ensureVBOdisabled();
|
||||
BufferChecks.ensureElementVBOdisabled();
|
||||
nglDrawRangeElements(mode, start, end, indices.remaining(), GL_UNSIGNED_SHORT, indices, indices.position() << 1);
|
||||
}
|
||||
public static void glDrawRangeElements(int mode, int start, int end, IntBuffer indices) {
|
||||
BufferChecks.ensureVBOdisabled();
|
||||
BufferChecks.ensureElementVBOdisabled();
|
||||
nglDrawRangeElements(mode, start, end, indices.remaining(), GL_UNSIGNED_INT, indices, indices.position() << 2);
|
||||
}
|
||||
private static native void nglDrawRangeElements(int mode, int start, int end, int count, int type, Buffer indices, int indices_offset);
|
||||
public static void glDrawRangeElements(int mode, int start, int end, int count, int type, int buffer_offset) {
|
||||
BufferChecks.ensureVBOenabled();
|
||||
BufferChecks.ensureElementVBOenabled();
|
||||
nglDrawRangeElementsVBO(mode, start, end, count, type, buffer_offset);
|
||||
}
|
||||
private static native void nglDrawRangeElementsVBO(int mode, int start, int end, int count, int type, int buffer_offset);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue