mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
commit
098fa19abb
3 changed files with 6 additions and 5 deletions
|
|
@ -179,7 +179,7 @@ void GFXGLDevice::initGLState()
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
PlatformGL::setVSync(0);
|
PlatformGL::setVSync(smDisableVSync ? 0 : 1);
|
||||||
|
|
||||||
//OpenGL 3 need a binded VAO for render
|
//OpenGL 3 need a binded VAO for render
|
||||||
GLuint vao;
|
GLuint vao;
|
||||||
|
|
|
||||||
|
|
@ -297,8 +297,6 @@ void GFXGLDevice::init( const GFXVideoMode &mode, PlatformWindow *window )
|
||||||
|
|
||||||
loadGLCore();
|
loadGLCore();
|
||||||
loadGLExtensions(hdcGL);
|
loadGLExtensions(hdcGL);
|
||||||
|
|
||||||
wglSwapIntervalEXT(0);
|
|
||||||
|
|
||||||
// It is very important that extensions be loaded
|
// It is very important that extensions be loaded
|
||||||
// before we call initGLState()
|
// before we call initGLState()
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,10 @@
|
||||||
|
|
||||||
void PlatformGL::setVSync(const int i)
|
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