fix issues with multi-window and OpenGL on Windows

This commit is contained in:
Arisotura
2025-06-28 03:02:00 +02:00
parent 005ef9c9fc
commit ec2f7ee838
8 changed files with 102 additions and 19 deletions

7
src/frontend/qt_sdl/EmuThread.h Normal file → Executable file
View File

@ -22,6 +22,7 @@
#include <QThread>
#include <QMutex>
#include <QSemaphore>
#include <QWaitCondition>
#include <QQueue>
#include <QVariant>
@ -66,6 +67,7 @@ public:
msg_InitGL,
msg_DeInitGL,
msg_BorrowGL,
msg_BootROM,
msg_BootFirmware,
@ -130,12 +132,17 @@ public:
void initContext(int win);
void deinitContext(int win);
void borrowGL();
void returnGL();
void updateVideoSettings() { videoSettingsDirty = true; }
void updateVideoRenderer() { videoSettingsDirty = true; lastVideoRenderer = -1; }
int frontBuffer = 0;
QMutex frontBufferLock;
QWaitCondition glBorrowCond;
QMutex glBorrowMutex;
signals:
void windowUpdate();
void windowTitleChange(QString title);