mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
* use GL shim window instead of offscreen surface
* disable vsync by default (we'll take care of it later)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user