Jump to content
  • Advertisement
Sign in to follow this  
GaryPolter

OpenGL Error in OpenGL ES 1.1 glext.h?

This topic is 2048 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I just downloaded the OpenGL ES 1.1 glext.h file from Khronos and noticed this on line 1036:

 

GL_API void GL_APIENTRY *glMapBufferRangeEXT (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
 

Compiling on Windows (Visual Studio) this will roughly resolve to (ignoring declspec):

 

void __stdcall *glMapBufferRangeEXT

 

Which of course will not compile with a C2165 error.  An easy repro is to just put in this prototype:

 

void __stdcall *Foo();

 

The GL function is returning a void pointer, and glMapBufferOES has a correct prototype for this on line 789.

 

 

Am I completely wrong, or not understanding something?

Share this post


Link to post
Share on other sites
Advertisement

That does indeed appear to be a typo. It should be:
 

 

GL_API void * GL_APIENTRY glMapBufferRangeEXT (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!