mirror of https://github.com/encounter/SDL.git
SDL_opengl: Fix Mac build with new glext.h
This commit is contained in:
parent
65133ebc1b
commit
d623c0b443
|
@ -50,6 +50,7 @@
|
||||||
#define __glext_h_ /* Don't let gl.h include glext.h */
|
#define __glext_h_ /* Don't let gl.h include glext.h */
|
||||||
#endif
|
#endif
|
||||||
#if defined(__MACOSX__)
|
#if defined(__MACOSX__)
|
||||||
|
#include <stddef.h> /* Needed for ptrdiff_t */
|
||||||
#include <OpenGL/gl.h> /* Header File For The OpenGL Library */
|
#include <OpenGL/gl.h> /* Header File For The OpenGL Library */
|
||||||
#define __X_GL_H
|
#define __X_GL_H
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -332,7 +332,7 @@ GL_ResetState(SDL_Renderer *renderer)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void APIENTRY
|
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;
|
SDL_Renderer *renderer = (SDL_Renderer *) userParam;
|
||||||
GL_RenderData *data = (GL_RenderData *) renderer->driverdata;
|
GL_RenderData *data = (GL_RenderData *) renderer->driverdata;
|
||||||
|
|
Loading…
Reference in New Issue