Skip to content

Commit

Permalink
SDL_opengl: Fix Mac build with new glext.h
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgenpt committed Jun 4, 2014
1 parent 65133eb commit d623c0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/SDL_opengl.h
Expand Up @@ -50,6 +50,7 @@
#define __glext_h_ /* Don't let gl.h include glext.h */
#endif
#if defined(__MACOSX__)
#include <stddef.h> /* Needed for ptrdiff_t */
#include <OpenGL/gl.h> /* Header File For The OpenGL Library */
#define __X_GL_H
#else
Expand Down
2 changes: 1 addition & 1 deletion src/render/opengl/SDL_render_gl.c
Expand Up @@ -332,7 +332,7 @@ GL_ResetState(SDL_Renderer *renderer)
}

static void APIENTRY
GL_HandleDebugMessage(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const char *message, void *userParam)
GL_HandleDebugMessage(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const char *message, const void *userParam)
{
SDL_Renderer *renderer = (SDL_Renderer *) userParam;
GL_RenderData *data = (GL_RenderData *) renderer->driverdata;
Expand Down

0 comments on commit d623c0b

Please sign in to comment.