The WGL_EXT_swap_control extension allows you to do this on Windows, but I cannot find anything, even remotely cross-platform, doing the same thing, that is, synchronize my buffer swaps with a screen update. My application uses GLEW, so something suggested by this would be preferable. Cross-platform support for Linux, Mac and Windows is necessary, but my application will not break if synchronization cannot be established (for example, a user has disabled it in their graphics drivers).
I will take program code to do this on many platforms, with GLEW, as a valid answer.
source
share