diff --git a/client/displayservers/X11/x11.c b/client/displayservers/X11/x11.c index 020d8439..f2a35220 100644 --- a/client/displayservers/X11/x11.c +++ b/client/displayservers/X11/x11.c @@ -1315,6 +1315,14 @@ static void x11GLMakeCurrent(LG_DSGLContext context) static void x11GLSetSwapInterval(int interval) { + static PFNGLXSWAPINTERVALEXTPROC glXSwapIntervalEXT = NULL; + if (!glXSwapIntervalEXT) + { + glXSwapIntervalEXT = (PFNGLXSWAPINTERVALEXTPROC) glXGetProcAddressARB( + (const GLubyte *) "glXSwapIntervalEXT"); + if (!glXSwapIntervalEXT) + DEBUG_FATAL("Failed to load glXSwapIntervalEXT"); + } glXSwapIntervalEXT(x11.display, x11.window, interval); }