diff --git a/config.features.h b/config.features.h index dd5653491b..4e056332a6 100644 --- a/config.features.h +++ b/config.features.h @@ -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 diff --git a/gfx/sdlwrap.c b/gfx/sdlwrap.c index dc732cd5f8..2145bddb66 100644 --- a/gfx/sdlwrap.c +++ b/gfx/sdlwrap.c @@ -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 diff --git a/ssnes.c b/ssnes.c index f4ba29820a..5dfc2e3a02 100644 --- a/ssnes.c +++ b/ssnes.c @@ -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");