Fix the threading for GL Context in Qt5.
Connect the emu_thread start/finish to a moveContext slot.
This commit is contained in:
parent
fab2f28ea5
commit
a3a70e56ac
4 changed files with 21 additions and 10 deletions
|
@ -81,6 +81,8 @@ signals:
|
|||
|
||||
class GRenderWindow : public QWidget, public EmuWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
GRenderWindow(QWidget* parent = NULL);
|
||||
~GRenderWindow();
|
||||
|
@ -103,6 +105,9 @@ public:
|
|||
void keyPressEvent(QKeyEvent* event);
|
||||
void keyReleaseEvent(QKeyEvent* event);
|
||||
|
||||
private slots:
|
||||
void moveContext();
|
||||
|
||||
private:
|
||||
QGLWidget* child;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue