summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorDinolek <18579460+Dinolek@users.noreply.github.com>2020-04-21 22:14:21 +0000
committerDinolek <18579460+Dinolek@users.noreply.github.com>2020-04-21 22:14:21 +0000
commit7836b2c504c4efb25a3bd6d85bcb2312fae3c58a (patch)
tree1f13929882b7a522e3d98a0b16d60b92518d0678 /Graphics/GraphicsEngineOpenGL
parentUpdates comments for descriptor settings in EngineD3D12CreateInfo struct (diff)
downloadDiligentCore-7836b2c504c4efb25a3bd6d85bcb2312fae3c58a.tar.gz
DiligentCore-7836b2c504c4efb25a3bd6d85bcb2312fae3c58a.zip
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);
}