check extension before use it

This commit is contained in:
Anis 2014-12-06 20:55:43 +01:00
parent 1a76341049
commit 7455f12343

View file

@ -5,7 +5,10 @@
void PlatformGL::setVSync(const int i)
{
wglSwapIntervalEXT( i );
if (WGLEW_EXT_swap_control)
{
wglSwapIntervalEXT(i);
}
}
#endif
#endif