From 3d923b1216b36e697ab25f45f0e5430e9909e28c Mon Sep 17 00:00:00 2001 From: Valeri Date: Sun, 19 Feb 2023 07:53:12 +0300 Subject: [PATCH] Invert result of glXSwapIntervalSGI Unlike `wglSwapIntervalEXT`, it returns zero on success and non-zero on error --- source/examples/cubescape-qt/Canvas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/examples/cubescape-qt/Canvas.cpp b/source/examples/cubescape-qt/Canvas.cpp index bd0c85258..fcb47b91d 100644 --- a/source/examples/cubescape-qt/Canvas.cpp +++ b/source/examples/cubescape-qt/Canvas.cpp @@ -207,7 +207,7 @@ void Canvas::setSwapInterval(SwapInterval swapInterval) if (!glXSwapIntervalSGI) glXSwapIntervalSGI = reinterpret_cast(m_context->getProcAddress("glXSwapIntervalSGI")); if (glXSwapIntervalSGI) - result = glXSwapIntervalSGI(swapInterval); + result = !glXSwapIntervalSGI(swapInterval); #endif