mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
check extension before use it
This commit is contained in:
parent
1a76341049
commit
7455f12343
1 changed files with 5 additions and 2 deletions
|
|
@ -5,7 +5,10 @@
|
|||
|
||||
void PlatformGL::setVSync(const int i)
|
||||
{
|
||||
wglSwapIntervalEXT( i );
|
||||
if (WGLEW_EXT_swap_control)
|
||||
{
|
||||
wglSwapIntervalEXT(i);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue