summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dist/changes-4.6.41
-rw-r--r--src/opengl/qgl.cpp12
2 files changed, 11 insertions, 2 deletions
diff --git a/dist/changes-4.6.4 b/dist/changes-4.6.4
index dbb2189..389aa3a 100644
--- a/dist/changes-4.6.4
+++ b/dist/changes-4.6.4
@@ -68,6 +68,7 @@ QtOpenGL
* [QTBUG-12591] setUniformValue(QSize) was setting (w,w) not (w,h).
* [QTBUG-12862] Don't #define highp/mediump/lowp if the desktop OpenGL
implementation has the GL_ARB_ES2_compatibility extension.
+ * [QTBUG-12554] Wrong OpenGLVersionFlags on OpenGL 4.0 systems.
QtScript
--------
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp
index 0137c85..81e55b3 100644
--- a/src/opengl/qgl.cpp
+++ b/src/opengl/qgl.cpp
@@ -1173,8 +1173,16 @@ QGLFormat::OpenGLVersionFlags Q_AUTOTEST_EXPORT qOpenGLVersionFlagsFromString(co
QGLFormat::OpenGL_Version_2_1 |
QGLFormat::OpenGL_Version_3_0;
}
- else
- qWarning("Unrecognised OpenGL version");
+ else {
+ versionFlags |= QGLFormat::OpenGL_Version_1_1 |
+ QGLFormat::OpenGL_Version_1_2 |
+ QGLFormat::OpenGL_Version_1_3 |
+ QGLFormat::OpenGL_Version_1_4 |
+ QGLFormat::OpenGL_Version_1_5 |
+ QGLFormat::OpenGL_Version_2_0 |
+ QGLFormat::OpenGL_Version_2_1 |
+ QGLFormat::OpenGL_Version_3_0;
+ }
}
return versionFlags;
}