Fix T101776: wrong logic for GLX setSwapInterval
Regression in 93e4b15767
.
This commit is contained in:
parent
3980af7453
commit
99f88281df
Notes:
blender-bot
2023-02-21 17:59:30 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3 Referenced by issue #101776, Wrong logic inside GHOST_ContextGLX::setSwapInterval method
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue