summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorAssiduous <61806567+TheMostDiligent@users.noreply.github.com>2020-04-22 16:21:57 +0000
committerGitHub <noreply@github.com>2020-04-22 16:21:57 +0000
commitc2aebc9948afc4ae7167fa964f5d1f217e02cbb3 (patch)
tree1f13929882b7a522e3d98a0b16d60b92518d0678 /Graphics/GraphicsEngineOpenGL
parentUpdates comments for descriptor settings in EngineD3D12CreateInfo struct (diff)
parentFallback to GLX_MESA_swap_control if GLX_EXT_swap_control isn't supported (diff)
downloadDiligentCore-c2aebc9948afc4ae7167fa964f5d1f217e02cbb3.tar.gz
DiligentCore-c2aebc9948afc4ae7167fa964f5d1f217e02cbb3.zip
Merge pull request #128 from Dinolek/master
Fallback to GLX_MESA_swap_control if GLX_EXT_swap_control isn't supported
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);
}