Jump to content

  • Log In with Google      Sign In   
  • Create Account

Error in OpenGL ES 1.1 glext.h?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 GaryPolter   Members   -  Reputation: 108

Like
0Likes
Like

Posted 02 May 2013 - 08:54 AM

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?



Sponsor:

#2 Ameise   Members   -  Reputation: 766

Like
0Likes
Like

Posted 02 May 2013 - 04:49 PM

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);





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS