summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2014-08-12 10:22:20 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2014-08-15 18:45:06 +0200
commite60079a55cea16418999026606d084ed6741a2e6 (patch)
treeb9d26ae3f747866e43915ffad3f721ac8e3aa46d /src
parenta9fa9b80f57e32ba92284323449840bb556dcbb0 (diff)
GLX: request up to OpenGL 4.5 / ES 3.1 by default
Change-Id: I55fd53a8f7f81708a103e24e35c09894b939f245 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforms/xcb/qglxintegration.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/platforms/xcb/qglxintegration.cpp b/src/plugins/platforms/xcb/qglxintegration.cpp
index 3ce0041aeb..d6fe5f3477 100644
--- a/src/plugins/platforms/xcb/qglxintegration.cpp
+++ b/src/plugins/platforms/xcb/qglxintegration.cpp
@@ -213,17 +213,17 @@ void QGLXContext::init(QXcbScreen *screen, QPlatformOpenGLContext *share)
QVector<int> glVersions;
if (m_format.renderableType() == QSurfaceFormat::OpenGL) {
- if (requestedVersion > 43)
+ if (requestedVersion > 45)
glVersions << requestedVersion;
// Don't bother with versions below 2.0
- glVersions << 43 << 42 << 41 << 40 << 33 << 32 << 31 << 30 << 21 << 20;
+ glVersions << 45 << 44 << 43 << 42 << 41 << 40 << 33 << 32 << 31 << 30 << 21 << 20;
} else if (m_format.renderableType() == QSurfaceFormat::OpenGLES) {
- if (requestedVersion > 30)
+ if (requestedVersion > 31)
glVersions << requestedVersion;
// Don't bother with versions below ES 2.0
- glVersions << 30 << 20;
+ glVersions << 31 << 30 << 20;
// ES does not support any format option
m_format.setOptions(QSurfaceFormat::FormatOptions());
}