Fix the threading for GL Context in Qt5.
Connect the emu_thread start/finish to a moveContext slot.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user