mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-22 03:25:46 +00:00
frontend: qt: bootmanager: Acquire a shared context in main emu thread.
This commit is contained in:
parent
ba6d264342
commit
0f0268bdd9
2 changed files with 12 additions and 12 deletions
|
@ -17,6 +17,7 @@
|
|||
#include "core/core.h"
|
||||
#include "core/frontend/emu_window.h"
|
||||
|
||||
class GRenderWindow;
|
||||
class QKeyEvent;
|
||||
class QScreen;
|
||||
class QTouchEvent;
|
||||
|
@ -35,7 +36,7 @@ class EmuThread final : public QThread {
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit EmuThread(Core::Frontend::GraphicsContext& context);
|
||||
explicit EmuThread(GRenderWindow& window);
|
||||
~EmuThread() override;
|
||||
|
||||
/**
|
||||
|
@ -89,7 +90,11 @@ private:
|
|||
std::mutex running_mutex;
|
||||
std::condition_variable running_cv;
|
||||
|
||||
Core::Frontend::GraphicsContext& core_context;
|
||||
/// Only used in asynchronous GPU mode
|
||||
std::unique_ptr<Core::Frontend::GraphicsContext> shared_context;
|
||||
|
||||
/// This is shared_context in asynchronous GPU mode, core_context in synchronous GPU mode
|
||||
Core::Frontend::GraphicsContext& context;
|
||||
|
||||
signals:
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue