summaryrefslogtreecommitdiffstats
path: root/demos/boxes/glextensions.h
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond@trolltech.com>2009-05-20 15:07:06 (GMT)
committerTrond Kjernåsen <trond@trolltech.com>2009-05-20 15:07:06 (GMT)
commitd46fd15e337421c723d56fd62582ac4ccc76395a (patch)
tree065266afd6e9bc6adb05812dececd8eadaafa1a4 /demos/boxes/glextensions.h
parent81780cd10a0901966a34d2805e56d106464e124d (diff)
downloadQt-d46fd15e337421c723d56fd62582ac4ccc76395a.zip
Qt-d46fd15e337421c723d56fd62582ac4ccc76395a.tar.gz
Qt-d46fd15e337421c723d56fd62582ac4ccc76395a.tar.bz2
Compile on Solaris with broken GL headers.
Reviewed-by: Samuel
Diffstat (limited to 'demos/boxes/glextensions.h')
-rw-r--r--demos/boxes/glextensions.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/demos/boxes/glextensions.h b/demos/boxes/glextensions.h
index 74617d6..7ba3b32 100644
--- a/demos/boxes/glextensions.h
+++ b/demos/boxes/glextensions.h
@@ -120,8 +120,11 @@ glUnmapBuffer
//#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
#endif
+#ifndef GL_ARB_vertex_buffer_object
+typedef ptrdiff_t GLsizeiptrARB;
+#endif
+
#ifndef GL_VERSION_1_5
-typedef ptrdiff_t GLsizeiptr;
#define GL_ARRAY_BUFFER 0x8892
#define GL_ELEMENT_ARRAY_BUFFER 0x8893
#define GL_READ_WRITE 0x88BA
@@ -185,7 +188,7 @@ typedef void (APIENTRY *_glTexImage3D) (GLenum, GLint, GLenum, GLsizei, GLsizei,
typedef void (APIENTRY *_glGenBuffers) (GLsizei, GLuint *);
typedef void (APIENTRY *_glBindBuffer) (GLenum, GLuint);
-typedef void (APIENTRY *_glBufferData) (GLenum, GLsizeiptr, const GLvoid *, GLenum);
+typedef void (APIENTRY *_glBufferData) (GLenum, GLsizeiptrARB, const GLvoid *, GLenum);
typedef void (APIENTRY *_glDeleteBuffers) (GLsizei, const GLuint *);
typedef void *(APIENTRY *_glMapBuffer) (GLenum, GLenum);
typedef GLboolean (APIENTRY *_glUnmapBuffer) (GLenum);