diff options
author | Sean Harmer <sean.harmer.qnx@kdab.com> | 2012-08-03 14:08:59 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-04 02:58:02 +0200 |
commit | 20b7f028cf959c0853c51d72fd4da5d48cfaee67 (patch) | |
tree | 672576a2dfd565125fe98661f78ac90d5500fdf6 /src/plugins | |
parent | 95d3380d229b479837296a3790e947c698350b40 (diff) |
XCB: Correction to OpenGL version check for profile support
Change-Id: I2f2bf877b1e2e628806f22fe66180b05090f4b3e
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platforms/xcb/qglxintegration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qglxintegration.cpp b/src/plugins/platforms/xcb/qglxintegration.cpp index 413c690897..3a29988269 100644 --- a/src/plugins/platforms/xcb/qglxintegration.cpp +++ b/src/plugins/platforms/xcb/qglxintegration.cpp @@ -105,7 +105,7 @@ QGLXContext::QGLXContext(QXcbScreen *screen, const QSurfaceFormat &format, QPlat contextAttributes << GLX_CONTEXT_MAJOR_VERSION_ARB << m_format.majorVersion() << GLX_CONTEXT_MINOR_VERSION_ARB << m_format.minorVersion(); - if (m_format.majorVersion() >= 3 || (m_format.majorVersion() == 3 && m_format.minorVersion() > 1)) { + if (m_format.majorVersion() > 3 || (m_format.majorVersion() == 3 && m_format.minorVersion() > 1)) { if (m_format.profile() == QSurfaceFormat::CoreProfile) { contextAttributes << GLX_CONTEXT_FLAGS_ARB << GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB << GLX_CONTEXT_PROFILE_MASK_ARB << GLX_CONTEXT_CORE_PROFILE_BIT_ARB; |