From 91fe4e2bb16a7a53898634e888b116ef93e89909 Mon Sep 17 00:00:00 2001 From: nigels Date: Fri, 21 May 2010 19:15:29 +0000 Subject: [PATCH] Add support for AMD_debug_output, recently added to opengl.org repository. git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@601 783a27ee-832a-0410-bc00-9f386506c6dd --- auto/bin/parse_spec.pl | 4 ++++ auto/core/GL_VERSION_2_0 | 1 - auto/src/glew_head.h | 8 ++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/auto/bin/parse_spec.pl b/auto/bin/parse_spec.pl index d18fee7..1045757 100755 --- a/auto/bin/parse_spec.pl +++ b/auto/bin/parse_spec.pl @@ -66,6 +66,10 @@ my %typemap = ( uint64 => "GLuint64", sync => "GLsync", + # AMD_debug_output + + DEBUGPROCAMD => "GLDEBUGPROCAMD", + # GLX 1.3 defines new types which might not be available at compile time #GLXFBConfig => "void*", diff --git a/auto/core/GL_VERSION_2_0 b/auto/core/GL_VERSION_2_0 index b1b5902..b1b4599 100644 --- a/auto/core/GL_VERSION_2_0 +++ b/auto/core/GL_VERSION_2_0 @@ -85,7 +85,6 @@ http://www.opengl.org/documentation/specs/version2.0/glspec20.pdf GL_STENCIL_BACK_REF 0x8CA3 GL_STENCIL_BACK_VALUE_MASK 0x8CA4 GL_STENCIL_BACK_WRITEMASK 0x8CA5 - typedef char GLchar void glBlendEquationSeparate (GLenum, GLenum) void glDrawBuffers (GLsizei n, const GLenum* bufs) void glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass) diff --git a/auto/src/glew_head.h b/auto/src/glew_head.h index ed49f50..e33e1f7 100644 --- a/auto/src/glew_head.h +++ b/auto/src/glew_head.h @@ -186,6 +186,14 @@ typedef GLint64EXT GLint64; typedef GLuint64EXT GLuint64; typedef struct __GLsync *GLsync; +typedef char GLchar; +typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id, + GLenum category, + GLenum severity, + GLsizei length, + const GLchar* message, + GLvoid* userParam); + #define GL_ACCUM 0x0100 #define GL_LOAD 0x0101 #define GL_RETURN 0x0102