mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-22 05:45:07 +00:00
For GLEW Bug #227 - Use GLAPIENTRY for GLDEBUGPROC* and leave GLAPIENTRY for application code to use.
This commit is contained in:
parent
ab39de8d7e
commit
1aff81c823
@ -313,19 +313,19 @@ EOT
|
|||||||
# add typedef to GL_AMD_debug_output
|
# add typedef to GL_AMD_debug_output
|
||||||
# parse_spec.pl can't parse typedefs from New Types section, but ought to
|
# parse_spec.pl can't parse typedefs from New Types section, but ought to
|
||||||
cat >> $1/GL_AMD_debug_output <<EOT
|
cat >> $1/GL_AMD_debug_output <<EOT
|
||||||
typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id, GLenum category, GLenum severity, GLsizei length, const GLchar* message, void* userParam)
|
typedef void (GLAPIENTRY *GLDEBUGPROCAMD)(GLuint id, GLenum category, GLenum severity, GLsizei length, const GLchar* message, void* userParam)
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
# add typedef to GL_ARB_debug_output
|
# add typedef to GL_ARB_debug_output
|
||||||
# parse_spec.pl can't parse typedefs from New Types section, but ought to
|
# parse_spec.pl can't parse typedefs from New Types section, but ought to
|
||||||
cat >> $1/GL_ARB_debug_output <<EOT
|
cat >> $1/GL_ARB_debug_output <<EOT
|
||||||
typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam)
|
typedef void (GLAPIENTRY *GLDEBUGPROCARB)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam)
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
# add typedef to GL_KHR_debug
|
# add typedef to GL_KHR_debug
|
||||||
# parse_spec.pl can't parse typedefs from New Types section, but ought to
|
# parse_spec.pl can't parse typedefs from New Types section, but ought to
|
||||||
cat >> $1/GL_KHR_debug <<EOT
|
cat >> $1/GL_KHR_debug <<EOT
|
||||||
typedef void (APIENTRY *GLDEBUGPROC)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam)
|
typedef void (GLAPIENTRY *GLDEBUGPROC)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam)
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
# Remove glGetPointerv from GL_KHR_debug
|
# Remove glGetPointerv from GL_KHR_debug
|
||||||
|
@ -38,13 +38,24 @@
|
|||||||
* GL needs GLAPI and GLAPIENTRY, GLU needs APIENTRY, CALLBACK, and wchar_t
|
* GL needs GLAPI and GLAPIENTRY, GLU needs APIENTRY, CALLBACK, and wchar_t
|
||||||
* defined properly.
|
* defined properly.
|
||||||
*/
|
*/
|
||||||
/* <windef.h> */
|
/* <windef.h> and <gl.h>*/
|
||||||
#ifndef APIENTRY
|
#ifdef APIENTRY
|
||||||
|
# ifndef GLAPIENTRY
|
||||||
|
# define GLAPIENTRY APIENTRY
|
||||||
|
# endif
|
||||||
|
# ifndef GLEWAPIENTRY
|
||||||
|
# define GLEWAPIENTRY APIENTRY
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
#define GLEW_APIENTRY_DEFINED
|
#define GLEW_APIENTRY_DEFINED
|
||||||
# if defined(__MINGW32__) || defined(__CYGWIN__)
|
# if defined(__MINGW32__) || defined(__CYGWIN__) || (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__)
|
||||||
# define APIENTRY __stdcall
|
|
||||||
# elif (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__)
|
|
||||||
# define APIENTRY __stdcall
|
# define APIENTRY __stdcall
|
||||||
|
# ifndef GLAPIENTRY
|
||||||
|
# define GLAPIENTRY __stdcall
|
||||||
|
# endif
|
||||||
|
# ifndef GLEWAPIENTRY
|
||||||
|
# define GLEWAPIENTRY __stdcall
|
||||||
|
# endif
|
||||||
# else
|
# else
|
||||||
# define APIENTRY
|
# define APIENTRY
|
||||||
# endif
|
# endif
|
||||||
@ -101,14 +112,6 @@ typedef _W64 int ptrdiff_t;
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef GLAPIENTRY
|
|
||||||
#define GLAPIENTRY APIENTRY
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef GLEWAPIENTRY
|
|
||||||
#define GLEWAPIENTRY APIENTRY
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* GLEW_STATIC is defined for static library.
|
* GLEW_STATIC is defined for static library.
|
||||||
* GLEW_BUILD is defined for building the DLL library.
|
* GLEW_BUILD is defined for building the DLL library.
|
||||||
@ -170,6 +173,8 @@ typedef _W64 int ptrdiff_t;
|
|||||||
#define GLAPI extern
|
#define GLAPI extern
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
#ifndef GLAPIENTRY
|
#ifndef GLAPIENTRY
|
||||||
#define GLAPIENTRY
|
#define GLAPIENTRY
|
||||||
#endif
|
#endif
|
||||||
@ -178,8 +183,6 @@ typedef _W64 int ptrdiff_t;
|
|||||||
#define GLEWAPIENTRY
|
#define GLEWAPIENTRY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _WIN32 */
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
@ -54,8 +54,6 @@ GLEWAPI const GLubyte * GLEWAPIENTRY glewGetString (GLenum name);
|
|||||||
#ifdef GLEW_APIENTRY_DEFINED
|
#ifdef GLEW_APIENTRY_DEFINED
|
||||||
#undef GLEW_APIENTRY_DEFINED
|
#undef GLEW_APIENTRY_DEFINED
|
||||||
#undef APIENTRY
|
#undef APIENTRY
|
||||||
#undef GLAPIENTRY
|
|
||||||
#define GLAPIENTRY
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef GLEW_CALLBACK_DEFINED
|
#ifdef GLEW_CALLBACK_DEFINED
|
||||||
|
@ -144,6 +144,7 @@ width="88" height="32" border="0" alt="Support This Project"></a></td></tr> -->
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
Ubuntu: <pre>sudo apt-get install libXmu-dev libXi-dev libgl-dev dos2unix</pre>
|
Ubuntu: <pre>sudo apt-get install libXmu-dev libXi-dev libgl-dev dos2unix</pre>
|
||||||
|
Fedora: <pre>sudo yum install libXmu-devel libXi-devel libGL-devel dos2unix</pre>
|
||||||
<!-- begin footer.html -->
|
<!-- begin footer.html -->
|
||||||
</td></tr></table></body>
|
</td></tr></table></body>
|
||||||
<!-- end footer.html -->
|
<!-- end footer.html -->
|
||||||
|
Loading…
Reference in New Issue
Block a user