* use GL shim window instead of offscreen surface

* disable vsync by default (we'll take care of it later)
This commit is contained in:
Arisotura
2020-05-27 21:29:47 +02:00
parent 256360aebb
commit ef2802ae31
2 changed files with 29 additions and 3 deletions

View File

@ -21,6 +21,7 @@
#include <QThread>
#include <QWidget>
#include <QWindow>
#include <QMainWindow>
#include <QImage>
#include <QActionGroup>
@ -74,7 +75,7 @@ private:
int PrevEmuStatus;
int EmuRunning;
QOffscreenSurface* oglSurface;
QSurface* oglSurface;
QOpenGLContext* oglContext;
};
@ -162,6 +163,16 @@ private:
};
class GLShim : public QWindow
{
Q_OBJECT
public:
explicit GLShim(QSurfaceFormat& format);
~GLShim();
};
class MainWindow : public QMainWindow
{
Q_OBJECT