mirror of
https://github.com/libretro/RetroArch
synced 2025-01-26 18:35:22 +00:00
(GLSL) Add compatible header inludes for modern GL/GLES -
NOTE - we need a proper HAVE_SDL define since we are not going to be using SDL for Rarch on either Android or PSL1GHT
This commit is contained in:
parent
c69b3ca938
commit
939b9dd259
@ -38,7 +38,7 @@ endif
|
|||||||
|
|
||||||
RSXGL_DEFINES = -D__RSX__ -DGL3_PROTOTYPES
|
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)
|
CFLAGS += -std=gnu99 $(SHARED_FLAGS)
|
||||||
CXXFLAGS += $(SHARED_FLAGS)
|
CXXFLAGS += $(SHARED_FLAGS)
|
||||||
|
|
||||||
|
@ -22,15 +22,29 @@
|
|||||||
#include "state_tracker.h"
|
#include "state_tracker.h"
|
||||||
#include "../dynamic.h"
|
#include "../dynamic.h"
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#if defined(__APPLE__)
|
||||||
#include <OpenGL/gl.h>
|
#include <OpenGL/gl.h>
|
||||||
|
#include <OpenGL/glext.h>
|
||||||
|
#elif defined(HAVE_PSGL)
|
||||||
|
#include <PSGL/psgl.h>
|
||||||
|
#include <PSGL/psglu.h>
|
||||||
|
#include <GLES/glext.h>
|
||||||
|
#elif defined(HAVE_OPENGL_MODERN)
|
||||||
|
#include <EGL/egl.h>
|
||||||
|
#include <GL3/gl3.h>
|
||||||
|
#include <GL3/gl3ext.h>
|
||||||
|
#elif defined(HAVE_OPENGLES2)
|
||||||
|
#include <GLES2/gl2.h>
|
||||||
|
#include <GLES2/gl2ext.h>
|
||||||
|
#elif defined(HAVE_OPENGLES1)
|
||||||
|
#include <GLES/gl.h>
|
||||||
|
#include <GLES/glext.h>
|
||||||
#else
|
#else
|
||||||
#define GL_GLEXT_PROTOTYPES
|
#define GL_GLEXT_PROTOTYPES
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
#include <GL/glext.h>
|
#include <GL/glext.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define NO_SDL_GLEXT
|
#define NO_SDL_GLEXT
|
||||||
#include "gfx_context.h"
|
#include "gfx_context.h"
|
||||||
#include "context/sdl_ctx.h"
|
#include "context/sdl_ctx.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user