Commit e01826ce authored by Martin Schultz's avatar Martin Schultz

removed code block for Qt version < 5

parent 965f7c08
......@@ -1933,36 +1933,6 @@ bool Core::checkOpenGLCapabilities() {
QString missing;
#if QT_VERSION < 0x050000
// We need at least version 2.0 or higher
QGLFormat::OpenGLVersionFlags flags = QGLFormat::openGLVersionFlags();
if ( QGLFormat::hasOpenGL() ) {
if ( flags.testFlag(QGLFormat::OpenGL_Version_None) ) {
missing += tr("OpenGL Version Unknown to QT!\n");
missing += tr("OpenGL reports version: ") + QString((const char*)glGetString( GL_VERSION )) ;
warn = true;
} else {
if ( !( flags.testFlag(QGLFormat::OpenGL_Version_3_0) |
flags.testFlag(QGLFormat::OpenGL_Version_2_1) |
flags.testFlag(QGLFormat::OpenGL_Version_2_0) ) ) {
ok = false;
missing += tr("OpenGL Version less then 2.0!\n");
}
}
} else {
ok = false;
missing += tr("No OpenGL support found!\n");
}
//Get OpenGL extensions not needed, deprecated style .... get rid of it ... soon
QString glExtensions = QString((const char*)glGetString(GL_EXTENSIONS));
#else
QOpenGLContext* context = QOpenGLContext::currentContext();
if ( context ) {
......@@ -1981,8 +1951,6 @@ bool Core::checkOpenGLCapabilities() {
missing += tr("No OpenGL support found!\n");
}
#endif
if ( !ok ) {
QString message = tr("Error! \nThe OpenGL capabilities of your current machine/driver are not sufficient!\n\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment