Skip to content

Commit

Permalink
Invert result of glXSwapIntervalSGI
Browse files Browse the repository at this point in the history
Unlike `wglSwapIntervalEXT`, it returns zero on success and non-zero on error
  • Loading branch information
v1993 authored Feb 19, 2023
1 parent ff2ff7a commit 3d923b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/examples/cubescape-qt/Canvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ void Canvas::setSwapInterval(SwapInterval swapInterval)
if (!glXSwapIntervalSGI)
glXSwapIntervalSGI = reinterpret_cast<SWAPINTERVALEXTPROC>(m_context->getProcAddress("glXSwapIntervalSGI"));
if (glXSwapIntervalSGI)
result = glXSwapIntervalSGI(swapInterval);
result = !glXSwapIntervalSGI(swapInterval);

#endif

Expand Down

0 comments on commit 3d923b1

Please sign in to comment.