From 0f35944137217ae9231e874cf980d3a90d758da3 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sat, 2 Aug 2003 15:44:03 +0000 Subject: [PATCH] Fixes --- src/java/org/lwjgl/opengl/CoreGL12.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/java/org/lwjgl/opengl/CoreGL12.java b/src/java/org/lwjgl/opengl/CoreGL12.java index 88b0ac29..dd74316e 100644 --- a/src/java/org/lwjgl/opengl/CoreGL12.java +++ b/src/java/org/lwjgl/opengl/CoreGL12.java @@ -190,14 +190,14 @@ public class CoreGL12 extends CoreGL11 implements CoreGL12Constants { nglGetSeparableFilter(target, format, type, row, Util.getOffset(row), column, Util.getOffset(column), span, Util.getOffset(span)); } 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, int type, ByteBuffer indices) { - nglDrawRangeElements(mode, start, end, indices.remaining(), type, indices, indices.position()); + public static void glDrawRangeElements(int mode, int start, int end, ByteBuffer indices) { + nglDrawRangeElements(mode, start, end, indices.remaining(), GL_UNSIGNED_BYTE, indices, indices.position()); } - public static void glDrawRangeElements(int mode, int start, int end, int type, ShortBuffer indices) { - nglDrawRangeElements(mode, start, end, indices.remaining(), type, indices, indices.position() << 1); + public static void glDrawRangeElements(int mode, int start, int end, ShortBuffer indices) { + nglDrawRangeElements(mode, start, end, indices.remaining(), GL_UNSIGNED_SHORT, indices, indices.position() << 1); } - public static void glDrawRangeElements(int mode, int start, int end, int type, IntBuffer indices) { - nglDrawRangeElements(mode, start, end, indices.remaining(), type, indices, indices.position() << 2); + public static void glDrawRangeElements(int mode, int start, int end, IntBuffer indices) { + 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 glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, ByteBuffer pixels) {