Qt: Allow use of OpenGL ES 2

This commit is contained in:
Jeffrey Pfau 2016-01-17 01:25:26 -08:00
parent ce45f6ea3f
commit c18b9c3a64
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ PainterGL::PainterGL(QGLWidget* parent, QGLFormat::OpenGLVersionFlags glVersion)
#endif
#if !defined(_WIN32) || defined(USE_EPOXY)
if (glVersion & QGLFormat::OpenGL_Version_3_0) {
if (glVersion & (QGLFormat::OpenGL_Version_3_0 | QGLFormat::OpenGL_ES_Version_2_0)) {
gl2Backend = new GBAGLES2Context;
GBAGLES2ContextCreate(gl2Backend);
m_backend = &gl2Backend->d;