mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 14:35:46 +00:00
qt: Recreate GL context on startup to support changing V-Sync.
This commit is contained in:
parent
e3672db866
commit
fb0d00db47
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