From 7836b2c504c4efb25a3bd6d85bcb2312fae3c58a Mon Sep 17 00:00:00 2001 From: Dinolek <18579460+Dinolek@users.noreply.github.com> Date: Wed, 22 Apr 2020 00:14:21 +0200 Subject: Fallback to GLX_MESA_swap_control if GLX_EXT_swap_control isn't supported --- Graphics/GraphicsEngineOpenGL/src/GLContextLinux.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Graphics/GraphicsEngineOpenGL') 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); } -- cgit v1.2.3