Attempt to fix Haiku buildbot (and other systems with an old glext.h).
authorRyan C. Gordon <icculus@icculus.org>
Tue, 21 May 2013 23:13:52 -0400
changeset 7206b69dfd56e1b0
parent 7205 b1ca5be78064
child 7207 7103daaf5414
Attempt to fix Haiku buildbot (and other systems with an old glext.h).
include/SDL_opengl.h
     1.1 --- a/include/SDL_opengl.h	Tue May 21 23:02:16 2013 -0400
     1.2 +++ b/include/SDL_opengl.h	Tue May 21 23:13:52 2013 -0400
     1.3 @@ -61,6 +61,45 @@
     1.4  #undef __glext_h_
     1.5  #endif
     1.6  
     1.7 +/* !!! FIXME: temporary solution, since we use this even if a system's glext.h doesn't have it */
     1.8 +#ifndef GL_ARB_debug_output
     1.9 +#define GL_ARB_debug_output 1
    1.10 +#define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB   0x8242
    1.11 +#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243
    1.12 +#define GL_DEBUG_CALLBACK_FUNCTION_ARB    0x8244
    1.13 +#define GL_DEBUG_CALLBACK_USER_PARAM_ARB  0x8245
    1.14 +#define GL_DEBUG_SOURCE_API_ARB           0x8246
    1.15 +#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247
    1.16 +#define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248
    1.17 +#define GL_DEBUG_SOURCE_THIRD_PARTY_ARB   0x8249
    1.18 +#define GL_DEBUG_SOURCE_APPLICATION_ARB   0x824A
    1.19 +#define GL_DEBUG_SOURCE_OTHER_ARB         0x824B
    1.20 +#define GL_DEBUG_TYPE_ERROR_ARB           0x824C
    1.21 +#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D
    1.22 +#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E
    1.23 +#define GL_DEBUG_TYPE_PORTABILITY_ARB     0x824F
    1.24 +#define GL_DEBUG_TYPE_PERFORMANCE_ARB     0x8250
    1.25 +#define GL_DEBUG_TYPE_OTHER_ARB           0x8251
    1.26 +#define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB   0x9143
    1.27 +#define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB  0x9144
    1.28 +#define GL_DEBUG_LOGGED_MESSAGES_ARB      0x9145
    1.29 +#define GL_DEBUG_SEVERITY_HIGH_ARB        0x9146
    1.30 +#define GL_DEBUG_SEVERITY_MEDIUM_ARB      0x9147
    1.31 +#define GL_DEBUG_SEVERITY_LOW_ARB         0x9148
    1.32 +typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam);
    1.33 +#ifdef GL_GLEXT_PROTOTYPES
    1.34 +GLAPI void APIENTRY glDebugMessageControlARB (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
    1.35 +GLAPI void APIENTRY glDebugMessageInsertARB (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
    1.36 +GLAPI void APIENTRY glDebugMessageCallbackARB (GLDEBUGPROCARB callback, const GLvoid *userParam);
    1.37 +GLAPI GLuint APIENTRY glGetDebugMessageLogARB (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
    1.38 +#endif /* GL_GLEXT_PROTOTYPES */
    1.39 +typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLARBPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
    1.40 +typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTARBPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
    1.41 +typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, const GLvoid *userParam);
    1.42 +typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGARBPROC) (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
    1.43 +#endif
    1.44 +
    1.45 +
    1.46  /**
    1.47   *  \file SDL_opengl.h
    1.48   *