mirror of https://github.com/sm64pc/sm64pc.git
fix GLEW include on OSX
This commit is contained in:
parent
457189bb13
commit
ca4986e82d
|
@ -14,25 +14,20 @@
|
|||
# define FOR_WINDOWS 0
|
||||
#endif
|
||||
|
||||
#if FOR_WINDOWS
|
||||
#if FOR_WINDOWS || defined(OSX_BUILD)
|
||||
# define GLEW_STATIC
|
||||
# include <GL/glew.h>
|
||||
#include <SDL2/SDL.h>
|
||||
#define GL_GLEXT_PROTOTYPES 1
|
||||
#include <SDL2/SDL_opengl.h>
|
||||
#endif
|
||||
|
||||
#else
|
||||
#include <SDL2/SDL.h>
|
||||
#define GL_GLEXT_PROTOTYPES 1
|
||||
|
||||
#define GL_GLEXT_PROTOTYPES 1
|
||||
#ifdef USE_GLES
|
||||
# include <SDL2/SDL_opengles2.h>
|
||||
#else
|
||||
# include <SDL2/SDL_opengl.h>
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#include "../platform.h"
|
||||
#include "gfx_cc.h"
|
||||
#include "gfx_rendering_api.h"
|
||||
|
|
Loading…
Reference in New Issue