From: Brian Paul Date: Thu, 5 Mar 2009 03:26:23 +0000 (-0700) Subject: fix incorrect prototype for glMapBufferRange() in glext.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c18ff2bf85fe58e7709a342a5f2ac602d3e2e37;p=mesa.git fix incorrect prototype for glMapBufferRange() in glext.h Needs to return void * --- diff --git a/include/GL/glext.h b/include/GL/glext.h index c0941aa8044..4dc9f29bc57 100644 --- a/include/GL/glext.h +++ b/include/GL/glext.h @@ -5268,10 +5268,10 @@ typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divi #ifndef GL_ARB_map_buffer_range #define GL_ARB_map_buffer_range 1 #ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glMapBufferRange (GLenum, GLintptr, GLsizeiptr, GLbitfield); +GLAPI void * APIENTRY glMapBufferRange (GLenum, GLintptr, GLsizeiptr, GLbitfield); GLAPI void APIENTRY glFlushMappedBufferRange (GLenum, GLintptr, GLsizeiptr); #endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); +typedef void * (APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length); #endif