Update of /cvsroot/java-game-lib/LWJGL/src/native/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13117/src/native/common
Modified Files:
common_tools.h extgl.h
Log Message:
Widened VBO/PBO buffer offsets and sizes to long to better match the GLsizeiptr and GLintptr native types
Index: extgl.h
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/extgl.h,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- extgl.h 23 Feb 2005 15:17:17 -0000 1.54
+++ extgl.h 26 Feb 2006 11:44:33 -0000 1.55
@@ -86,6 +86,7 @@
#define __GL_H__
#include <string.h>
+#include <stddef.h>
#ifndef APIENTRY
#define APIENTRY
@@ -140,15 +141,15 @@
#endif
// OpenGL 2.0 types
-typedef int GLintptr;
-typedef unsigned int GLsizeiptr;
+typedef ptrdiff_t GLintptr;
+typedef ptrdiff_t GLsizeiptr;
typedef unsigned char GLchar;
// ARB_shader_objects types
typedef unsigned int GLhandleARB;
// ARB_vertex_buffer_object types
-typedef int GLintptrARB;
-typedef unsigned int GLsizeiptrARB;
+typedef ptrdiff_t GLintptrARB;
+typedef ptrdiff_t GLsizeiptrARB;
typedef unsigned char GLcharARB;
// NV_half_float types
Index: common_tools.h
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/common_tools.h,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- common_tools.h 31 Jan 2006 12:31:41 -0000 1.40
+++ common_tools.h 26 Feb 2006 11:44:33 -0000 1.41
@@ -105,7 +105,7 @@
}
-static inline void *offsetToPointer(jint offset) {
+static inline void *offsetToPointer(jlong offset) {
return (char *)NULL + offset;
}
|