Use wglGetSwapIntervalEXT in SetSwapInterval.

This commit is contained in:
Alex 2022-11-19 04:33:19 +05:00
parent cda855fcd6
commit 01a835a4cb
1 changed files with 3 additions and 2 deletions

View File

@ -107,8 +107,9 @@ public:
if( aVal == -1 && !wxGLCanvas::IsExtensionSupported( "WGL_EXT_swap_control_tear" ) )
aVal = 1;
if( wglSwapIntervalEXT( aVal ) )
return aVal;
wglSwapIntervalEXT( aVal );
return wglGetSwapIntervalEXT();
}
#endif