config: Add a setting for graphics V-Sync.

This commit is contained in:
bunnei 2016-08-25 18:20:47 -04:00
parent 2267f98941
commit 08ad9b36d4
9 changed files with 20 additions and 1 deletions

View file

@ -119,6 +119,7 @@ GRenderWindow::GRenderWindow(QWidget* parent, EmuThread* emu_thread) :
QGLFormat fmt;
fmt.setVersion(3,3);
fmt.setProfile(QGLFormat::CoreProfile);
fmt.setSwapInterval(VideoCore::g_vsync_enabled);
// Requests a forward-compatible context, which is required to get a 3.2+ context on OS X
fmt.setOption(QGL::NoDeprecatedFunctions);