diff --git a/Makefile.psl1ght b/Makefile.psl1ght index 1a6acfed4a..9a561e74d8 100644 --- a/Makefile.psl1ght +++ b/Makefile.psl1ght @@ -38,7 +38,7 @@ endif RSXGL_DEFINES = -D__RSX__ -DGL3_PROTOTYPES -SHARED_FLAGS := -DHAVE_FILEBROWSER $(RSXGL_DEFINES) -DHAVE_OSKUTIL -DHAVE_OPENGL -DHAVE_OPENGL_MODERN -DHAVE_VID_CONTEXT -DHAVE_FBO -DHAVE_MOUSE -DHAVE_DEFAULT_RETROPAD_INPUT -DRARCH_CONSOLE -DHAVE_CONFIGFILE=1 -DHAVE_ZLIB -DHAVE_RARCH_MAIN_WRAP -DHAVE_GRIFFIN=1 -DPACKAGE_VERSION=\"0.9.7\" -Dmain=rarch_main -Wno-char-subscripts +SHARED_FLAGS := -DHAVE_FILEBROWSER $(RSXGL_DEFINES) -DHAVE_OSKUTIL -DHAVE_OPENGL -DHAVE_OPENGL_MODERN -DHAVE_GLSL -DHAVE_VID_CONTEXT -DHAVE_FBO -DHAVE_MOUSE -DHAVE_DEFAULT_RETROPAD_INPUT -DRARCH_CONSOLE -DHAVE_CONFIGFILE=1 -DHAVE_ZLIB -DHAVE_RARCH_MAIN_WRAP -DHAVE_GRIFFIN=1 -DPACKAGE_VERSION=\"0.9.7\" -Dmain=rarch_main -Wno-char-subscripts CFLAGS += -std=gnu99 $(SHARED_FLAGS) CXXFLAGS += $(SHARED_FLAGS) diff --git a/gfx/shader_glsl.c b/gfx/shader_glsl.c index b19a87d4ad..a92296845c 100644 --- a/gfx/shader_glsl.c +++ b/gfx/shader_glsl.c @@ -22,15 +22,29 @@ #include "state_tracker.h" #include "../dynamic.h" -#ifdef __APPLE__ +#if defined(__APPLE__) #include +#include +#elif defined(HAVE_PSGL) +#include +#include +#include +#elif defined(HAVE_OPENGL_MODERN) +#include +#include +#include +#elif defined(HAVE_OPENGLES2) +#include +#include +#elif defined(HAVE_OPENGLES1) +#include +#include #else #define GL_GLEXT_PROTOTYPES #include #include #endif - #define NO_SDL_GLEXT #include "gfx_context.h" #include "context/sdl_ctx.h"