summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/src/GLContextLinux.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/src/GLContextLinux.cpp b/Graphics/GraphicsEngineOpenGL/src/GLContextLinux.cpp
index 6abc2822..5a9efc3a 100644
--- a/Graphics/GraphicsEngineOpenGL/src/GLContextLinux.cpp
+++ b/Graphics/GraphicsEngineOpenGL/src/GLContextLinux.cpp
@@ -166,6 +166,12 @@ void GLContext::SwapBuffers(int SwapInterval)
{
glXSwapIntervalEXT(display, wnd, SwapInterval);
}
+# if GLX_MESA_swap_control
+ else if (glXSwapIntervalMESA != nullptr)
+ {
+ glXSwapIntervalMESA(SwapInterval);
+ }
+# endif
#endif
glXSwapBuffers(display, wnd);
}