Re: How to use wglSwapBuffers?

Re:

For modern OpenGL(3.x), SwapBuffers(HDC hdc) can cause Freeze in non-primary monitor if dual monitors are used.
wglSwapLayerBuffers(hdc, WGL_SWAP_MAIN_PLANE) can escape that issue. no idea what happens inside SwapBuffers(HDC hdc) during freeze.