For GLEW Bug #233 - GL_KHR_debug: GLDEBUGPROC incorrectly defined

This commit is contained in:
Nigel Stewart 2013-12-09 16:48:12 -06:00
parent 0d810d52f1
commit 86cb03dd3d

View File

@ -317,19 +317,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, GLvoid* userParam) typedef void (APIENTRY *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, GLvoid* userParam) typedef void (APIENTRY *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, GLvoid* userParam) typedef void (APIENTRY *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