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) {