OGL32CTX: Fix osx build
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14925 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
8a33f14da5
commit
ce62c0b3b7
@ -49,6 +49,7 @@ PFNGLDELETEBUFFERSPROC glDeleteBuffers;
|
||||
static GLuint quad_buffer;
|
||||
static bool is_gl_init = false;
|
||||
|
||||
#ifdef DEBUG_OUTPUT_DECLARED
|
||||
static
|
||||
void debugCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length,
|
||||
const GLchar* msg, const void *userparam)
|
||||
@ -111,6 +112,7 @@ void debugCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsiz
|
||||
}
|
||||
printf("%s\n", msg);
|
||||
}
|
||||
#endif
|
||||
|
||||
void initGL()
|
||||
{
|
||||
@ -158,7 +160,7 @@ void initGL()
|
||||
glDrawArraysInstanced = (PFNGLDRAWARRAYSINSTANCEDPROC)IRR_OGL_LOAD_EXTENSION("glDrawArraysInstanced");
|
||||
glDeleteBuffers = (PFNGLDELETEBUFFERSPROC)IRR_OGL_LOAD_EXTENSION("glDeleteBuffers");
|
||||
#endif
|
||||
#if DEBUG
|
||||
#ifdef DEBUG_OUTPUT_DECLARED
|
||||
glDebugMessageCallbackARB(debugCallback, NULL);
|
||||
#endif
|
||||
const float quad_vertex[] = {
|
||||
|
@ -14,6 +14,7 @@
|
||||
# include <GL/gl.h>
|
||||
#else
|
||||
#define GL_GLEXT_PROTOTYPES
|
||||
#define DEBUG_OUTPUT_DECLARED
|
||||
# include <GL/gl.h>
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user