mirror of
https://github.com/libretro/Play-.git
synced 2025-02-22 20:52:18 +00:00
Fix Qt GLES builds
This commit is contained in:
parent
ee06ce30cd
commit
ac702fb96c
@ -1,7 +1,14 @@
|
||||
#if !defined(GLES_COMPATIBILITY)
|
||||
#include "GSH_OpenGLQt.h"
|
||||
#endif
|
||||
|
||||
#include <QWindow>
|
||||
#include <QOpenGLContext>
|
||||
|
||||
#if defined(GLES_COMPATIBILITY)
|
||||
#include "GSH_OpenGLQt.h"
|
||||
#endif
|
||||
|
||||
CGSH_OpenGLQt::CGSH_OpenGLQt(QWindow* renderWindow)
|
||||
: m_renderWindow(renderWindow)
|
||||
{
|
||||
|
@ -5,7 +5,11 @@ OpenGLWindow::OpenGLWindow(QWindow* parent)
|
||||
: QWindow(parent)
|
||||
{
|
||||
QSurfaceFormat format;
|
||||
#if defined(GLES_COMPATIBILITY)
|
||||
format.setVersion(3, 0);
|
||||
#else
|
||||
format.setVersion(3, 2);
|
||||
#endif
|
||||
format.setProfile(QSurfaceFormat::CoreProfile);
|
||||
format.setSwapBehavior(QSurfaceFormat::DoubleBuffer);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user