mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 18:45:45 +00:00
OpenGL: Use MakeCurrent/DoneCurrent for multithreaded rendering.
This commit is contained in:
parent
8e9285f679
commit
91e048cce7
6 changed files with 39 additions and 2 deletions
|
@ -374,6 +374,8 @@ bool GMainWindow::LoadROM(const QString& filename) {
|
|||
|
||||
const Core::System::ResultStatus result{system.Load(render_window, filename.toStdString())};
|
||||
|
||||
render_window->DoneCurrent();
|
||||
|
||||
if (result != Core::System::ResultStatus::Success) {
|
||||
switch (result) {
|
||||
case Core::System::ResultStatus::ErrorGetLoader:
|
||||
|
@ -916,6 +918,7 @@ int main(int argc, char* argv[]) {
|
|||
QCoreApplication::setApplicationName("yuzu");
|
||||
|
||||
QApplication::setAttribute(Qt::AA_X11InitThreads);
|
||||
QApplication::setAttribute(Qt::AA_DontCheckOpenGLContextThreadAffinity);
|
||||
QApplication app(argc, argv);
|
||||
|
||||
// Qt changes the locale and causes issues in float conversion using std::to_string() when
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue