qt: Recreate GL context on startup to support changing V-Sync.

This commit is contained in:
bunnei 2016-08-29 21:28:58 -04:00
parent 7299895b48
commit 02702c6605
3 changed files with 39 additions and 25 deletions

View file

@ -243,7 +243,9 @@ bool GMainWindow::InitializeSystem() {
if (emu_thread != nullptr)
ShutdownGame();
render_window->InitRenderTarget();
render_window->MakeCurrent();
if (!gladLoadGL()) {
QMessageBox::critical(this, tr("Error while starting Citra!"),
tr("Failed to initialize the video core!\n\n"