mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-27 00:00:07 -06:00
fix issues with multi-window and OpenGL on Windows
This commit is contained in:
7
src/frontend/qt_sdl/EmuThread.h
Normal file → Executable file
7
src/frontend/qt_sdl/EmuThread.h
Normal file → Executable 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);
|
||||
|
Reference in New Issue
Block a user