diff options
| author | Assiduous <61806567+TheMostDiligent@users.noreply.github.com> | 2020-04-22 16:21:57 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-22 16:21:57 +0000 |
| commit | c2aebc9948afc4ae7167fa964f5d1f217e02cbb3 (patch) | |
| tree | 1f13929882b7a522e3d98a0b16d60b92518d0678 /Graphics/GraphicsEngineOpenGL | |
| parent | Updates comments for descriptor settings in EngineD3D12CreateInfo struct (diff) | |
| parent | Fallback to GLX_MESA_swap_control if GLX_EXT_swap_control isn't supported (diff) | |
| download | DiligentCore-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.cpp | 6 |
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); } |
