mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 16:55:06 +02:00
Fixing android GLES config
This commit is contained in:
parent
8241def9b9
commit
8b2e8706ff
3 changed files with 9 additions and 4 deletions
|
@ -16,7 +16,6 @@
|
|||
|
||||
#if defined(USE_GLES)
|
||||
#define HIFI_GLES
|
||||
#define HIFI_EGL
|
||||
#endif
|
||||
|
||||
#if defined(HIFI_GLES)
|
||||
|
@ -37,10 +36,8 @@
|
|||
|
||||
#if defined(HIFI_GLES)
|
||||
#define GL_GLEXT_PROTOTYPES
|
||||
#include <GLES3/gl32.h>
|
||||
#include <EGL/egl.h>
|
||||
#include <GLES3/gl3.h>
|
||||
#include <GLES3/gl3ext.h>
|
||||
#include <GLES3/gl3platform.h>
|
||||
|
||||
#define GL_DEPTH_COMPONENT32_OES 0x81A7
|
||||
#define GL_TIME_ELAPSED_EXT 0x88BF
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
//
|
||||
|
||||
#include "OpenGLVersionChecker.h"
|
||||
|
||||
#if !defined(Q_OS_ANDROID)
|
||||
|
||||
#include "Config.h"
|
||||
|
||||
#include <mutex>
|
||||
|
@ -110,3 +113,5 @@ QJsonObject OpenGLVersionChecker::checkVersion(bool& valid, bool& override) {
|
|||
|
||||
return glData;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
#ifndef hifi_OpenGLVersionChecker_h
|
||||
#define hifi_OpenGLVersionChecker_h
|
||||
|
||||
#include <QtGlobal>
|
||||
#if !defined(Q_OS_ANDROID)
|
||||
#include <QApplication>
|
||||
|
||||
class OpenGLVersionChecker : public QApplication {
|
||||
|
@ -21,5 +23,6 @@ public:
|
|||
|
||||
static QJsonObject checkVersion(bool& valid, bool& override);
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif // hifi_OpenGLVersionChecker_h
|
||||
|
|
Loading…
Reference in a new issue