[Bf-blender-cvs] [99f88281df5] master: Fix T101776: wrong logic for GLX setSwapInterval

Campbell Barton noreply at git.blender.org
Thu Oct 13 01:29:01 CEST 2022


Commit: 99f88281df5035057cef72ba5325646752550372
Author: Campbell Barton
Date:   Thu Oct 13 10:27:22 2022 +1100
Branches: master
https://developer.blender.org/rB99f88281df5035057cef72ba5325646752550372

Fix T101776: wrong logic for GLX setSwapInterval

Regression in 93e4b15767cf958d5a07ba6acce25438f244bf22.

===================================================================

M	intern/ghost/intern/GHOST_ContextGLX.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_ContextGLX.cpp b/intern/ghost/intern/GHOST_ContextGLX.cpp
index 4c1e2705b50..93708983f37 100644
--- a/intern/ghost/intern/GHOST_ContextGLX.cpp
+++ b/intern/ghost/intern/GHOST_ContextGLX.cpp
@@ -306,7 +306,7 @@ GHOST_TSuccess GHOST_ContextGLX::releaseNativeHandles()
 
 GHOST_TSuccess GHOST_ContextGLX::setSwapInterval(int interval)
 {
-  if (!epoxy_has_glx_extension(m_display, DefaultScreen(m_display), "GLX_EXT_swap_control")) {
+  if (epoxy_has_glx_extension(m_display, DefaultScreen(m_display), "GLX_EXT_swap_control")) {
     ::glXSwapIntervalEXT(m_display, m_window, interval);
     return GHOST_kSuccess;
   }



More information about the Bf-blender-cvs mailing list