Use wglGetSwapIntervalEXT in SetSwapInterval.
This commit is contained in:
parent
cda855fcd6
commit
01a835a4cb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue