mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 21:57:57 +03:00
Disable vsync on desktop OpenGL.
Should make this a setting toggle.
This commit is contained in:
parent
130dcb7d51
commit
0fac36935e
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@ QSurfaceFormat OpenGLWindow::GetSurfaceFormat()
|
||||||
#endif
|
#endif
|
||||||
format.setProfile(QSurfaceFormat::CoreProfile);
|
format.setProfile(QSurfaceFormat::CoreProfile);
|
||||||
format.setSwapBehavior(QSurfaceFormat::DoubleBuffer);
|
format.setSwapBehavior(QSurfaceFormat::DoubleBuffer);
|
||||||
|
format.setSwapInterval(0);
|
||||||
format.setAlphaBufferSize(0);
|
format.setAlphaBufferSize(0);
|
||||||
return format;
|
return format;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue