qt: Recreate GL context on startup to support changing V-Sync.
This commit is contained in:
parent
7299895b48
commit
02702c6605
3 changed files with 39 additions and 25 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue