mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 15:50:00 -06:00
use the message queue for GL context init/deinit
This commit is contained in:
@ -58,6 +58,9 @@ public:
|
||||
enum MessageType
|
||||
{
|
||||
msg_EmuStop,
|
||||
|
||||
msg_InitGL,
|
||||
msg_DeInitGL,
|
||||
};
|
||||
|
||||
struct Message
|
||||
@ -146,14 +149,6 @@ private:
|
||||
QSemaphore msgSemaphore;
|
||||
QQueue<Message> msgQueue;
|
||||
|
||||
enum ContextRequestKind
|
||||
{
|
||||
contextRequest_None = 0,
|
||||
contextRequest_InitGL,
|
||||
contextRequest_DeInitGL
|
||||
};
|
||||
std::atomic<ContextRequestKind> ContextRequest = contextRequest_None;
|
||||
|
||||
EmuInstance* emuInstance;
|
||||
|
||||
int autoScreenSizing;
|
||||
|
Reference in New Issue
Block a user