mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
vsync update on reset settings
This commit is contained in:
parent
b444cabe4d
commit
005f322a94
1 changed files with 2 additions and 0 deletions
|
|
@ -44,6 +44,8 @@ GFXGLWindowTarget::GFXGLWindowTarget(PlatformWindow *win, GFXDevice *d)
|
||||||
|
|
||||||
void GFXGLWindowTarget::resetMode()
|
void GFXGLWindowTarget::resetMode()
|
||||||
{
|
{
|
||||||
|
PlatformGL::setVSync(GFXDevice::smDisableVSync ? 0 : 2);
|
||||||
|
|
||||||
if(mWindow->getVideoMode().fullScreen != mWindow->isFullscreen())
|
if(mWindow->getVideoMode().fullScreen != mWindow->isFullscreen())
|
||||||
{
|
{
|
||||||
_teardownCurrentMode();
|
_teardownCurrentMode();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue