mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 10:40:39 +00:00
Check for glXSwapInterval as well.
This commit is contained in:
parent
e58bdc4811
commit
9747a594e8
@ -292,6 +292,8 @@ static bool gfx_ctx_set_video_mode(
|
||||
g_is_double = val;
|
||||
if (g_is_double)
|
||||
{
|
||||
if (!g_pglSwapInterval)
|
||||
g_pglSwapInterval = (int (*)(int))glXGetProcAddress((const GLubyte*)"glXSwapInterval");
|
||||
if (!g_pglSwapInterval)
|
||||
g_pglSwapInterval = (int (*)(int))glXGetProcAddress((const GLubyte*)"glXSwapIntervalMESA");
|
||||
if (!g_pglSwapInterval)
|
||||
|
@ -64,6 +64,8 @@ static void gfx_ctx_swap_interval(unsigned interval)
|
||||
success = CGLSetParameter(CGLGetCurrentContext(), kCGLCPSwapInterval, &val) == 0;
|
||||
#else
|
||||
static int (*glx_swap_interval)(int) = NULL;
|
||||
if (!glx_swap_interval)
|
||||
GL_SYM_WRAP(glx_swap_interval, "glXSwapInterval");
|
||||
if (!glx_swap_interval)
|
||||
GL_SYM_WRAP(glx_swap_interval, "glXSwapIntervalMESA");
|
||||
if (!glx_swap_interval)
|
||||
|
Loading…
Reference in New Issue
Block a user