From f8aaf1df1e0ba86711452180a1e75727784a8b1c Mon Sep 17 00:00:00 2001 From: TwinAphex51224 Date: Wed, 30 Nov 2011 18:32:45 +0100 Subject: [PATCH] (PS3) Some more commits --- Makefile.ps3 | 2 +- gfx/gl_common.h | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile.ps3 b/Makefile.ps3 index f38c0d9b81..acc92bfafd 100644 --- a/Makefile.ps3 +++ b/Makefile.ps3 @@ -45,7 +45,7 @@ MAKE_PACKAGE_NPDRM = $(CELL_SDK)/$(HOST_DIR)/bin/make_package_npdrm OBJ = ps3/buffer.o ps3/ps3_audio.o ps3/resampler.o ps3/ps3_input.o getopt.o ssnes.o driver.o settings.o message.o rewind.o movie.o autosave.o gfx/gfx_common.o gfx/gl.c gfx/shader_cg.c gfx/snes_state.c ups.o bps.o strl.o screenshot.o audio/hermite.o -LIBS = -ldbgfont -lPSGL -lgcm_cmd -lgcm_sys_stub -lresc_stub libsnes.a -lm -lio_stub -lfs_stub -lsysutil_stub -lsysmodule_stub -laudio_stub -lnet_stub -lpthread +LIBS = -ldbgfont -lPSGL -lgcm_cmd -lgcm_sys_stub -lresc_stub -lm -lio_stub -lfs_stub -lsysutil_stub -lsysmodule_stub -laudio_stub -lnet_stub -lpthread DEFINES = -DHAVE_OPENGL=1 -DHAVE_CG=1 -DHAVE_FBO=1 -D__CELLOS_LV2__ -DPACKAGE_VERSION=\".0.9.2\" diff --git a/gfx/gl_common.h b/gfx/gl_common.h index b979d36aca..d75401ff9c 100644 --- a/gfx/gl_common.h +++ b/gfx/gl_common.h @@ -29,10 +29,16 @@ #include #include #else +#ifdef __CELLOS_LV2__ +#include +#include +#include +#else #define GL_GLEXT_PROTOTYPES #include #include #endif +#endif static inline bool gl_check_error(void) {