1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

Fix build for OSX.

This commit is contained in:
Themaister 2011-11-01 18:45:50 +01:00
parent 1981b14de9
commit ee12266a2b
3 changed files with 8 additions and 1 deletions

View File

@ -14,6 +14,12 @@ static const bool _sdl_supp = true;
static const bool _sdl_supp = false;
#endif
#ifdef HAVE_OPENGL
static const bool _opengl_supp = true;
#else
static const bool _opengl_supp = false;
#endif
#ifdef HAVE_XVIDEO
static const bool _xvideo_supp = true;
#else

View File

@ -56,7 +56,7 @@ void sdlwrap_set_swap_interval(unsigned interval, bool inited)
}
if (wgl_swap_interval) wgl_swap_interval(g_interval);
#elif defined(__APPLE__)
#elif defined(__APPLE__) && defined(HAVE_OPENGL)
GLint val = g_interval;
CGLSetParameter(CGLGetCurrentContext(), kCGLCPSwapInterval, &val);
#else

View File

@ -401,6 +401,7 @@ static void print_features(void)
puts("");
puts("Features:");
_PSUPP(sdl, "SDL", "SDL drivers");
_PSUPP(opengl, "OpenGL", "OpenGL driver");
_PSUPP(xvideo, "XVideo", "XVideo output");
_PSUPP(alsa, "ALSA", "audio driver");
_PSUPP(oss, "OSS", "audio driver");