Remove last traces of opengl es 1 support
Change-Id: I3f86d4892ec3235003d34fdcf3f093f1513c821f Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
parent
33573bf7ea
commit
03c1a6ac71
@ -177,11 +177,7 @@ void GLWidget::resizeGL(int width, int height)
|
|||||||
|
|
||||||
glMatrixMode(GL_PROJECTION);
|
glMatrixMode(GL_PROJECTION);
|
||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
#ifdef QT_OPENGL_ES_1
|
|
||||||
glOrthof(-0.5, +0.5, -0.5, +0.5, 4.0, 15.0);
|
|
||||||
#else
|
|
||||||
glOrtho(-0.5, +0.5, -0.5, +0.5, 4.0, 15.0);
|
glOrtho(-0.5, +0.5, -0.5, +0.5, 4.0, 15.0);
|
||||||
#endif
|
|
||||||
glMatrixMode(GL_MODELVIEW);
|
glMatrixMode(GL_MODELVIEW);
|
||||||
}
|
}
|
||||||
//! [8]
|
//! [8]
|
||||||
|
@ -739,16 +739,14 @@ void tst_QGL::openGLVersionCheck()
|
|||||||
// However, the complicated parts are in openGLVersionFlags(const QString &versionString)
|
// However, the complicated parts are in openGLVersionFlags(const QString &versionString)
|
||||||
// tested above
|
// tested above
|
||||||
|
|
||||||
#if defined(QT_OPENGL_ES_1)
|
#if defined(QT_OPENGL_ES_2)
|
||||||
QVERIFY(QGLFormat::openGLVersionFlags() & QGLFormat::OpenGL_ES_Common_Version_1_0);
|
|
||||||
#elif defined(QT_OPENGL_ES_2)
|
|
||||||
QVERIFY(QGLFormat::openGLVersionFlags() & QGLFormat::OpenGL_ES_Version_2_0);
|
QVERIFY(QGLFormat::openGLVersionFlags() & QGLFormat::OpenGL_ES_Version_2_0);
|
||||||
#else
|
#else
|
||||||
if (QOpenGLContext::currentContext()->isOpenGLES())
|
if (QOpenGLContext::currentContext()->isOpenGLES())
|
||||||
QVERIFY(QGLFormat::openGLVersionFlags() & QGLFormat::OpenGL_ES_Version_2_0);
|
QVERIFY(QGLFormat::openGLVersionFlags() & QGLFormat::OpenGL_ES_Version_2_0);
|
||||||
else
|
else
|
||||||
QVERIFY(QGLFormat::openGLVersionFlags() & QGLFormat::OpenGL_Version_1_1);
|
QVERIFY(QGLFormat::openGLVersionFlags() & QGLFormat::OpenGL_Version_1_1);
|
||||||
#endif //defined(QT_OPENGL_ES_1)
|
#endif //defined(QT_OPENGL_ES_2)
|
||||||
}
|
}
|
||||||
#endif //QT_BUILD_INTERNAL
|
#endif //QT_BUILD_INTERNAL
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user