GTK+: OpenGL: Old libepoxy lacks glXSwapIntervalMESA.

This commit is contained in:
Brandon Wright 2018-12-04 14:57:20 -06:00
parent b9ad162723
commit a573dee5fe
1 changed files with 2 additions and 0 deletions

View File

@ -156,8 +156,10 @@ void GTKGLXContext::swap_interval (int frames)
glXSwapIntervalEXT (display, xid, frames);
else if (epoxy_has_glx_extension (display, screen, "GLX_SGI_swap_control"))
glXSwapIntervalSGI (frames);
#ifdef GLX_MESA_swap_control
else if (epoxy_has_glx_extension (display, screen, "GLX_MESA_swap_control"))
glXSwapIntervalMESA (frames);
#endif
}