summaryrefslogtreecommitdiffstats
path: root/src/gui/egl/qegl.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-12-04 18:33:53 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-12-04 18:33:53 (GMT)
commit1bb5999cdca0a70df3f96d596c83c3cf7c97c5fd (patch)
tree71c03d33b9c36fb78a6bc11b8994720ca3823f79 /src/gui/egl/qegl.cpp
parent696099f8e3179787114df40d6ce6fef97bfa33dc (diff)
parentc0b81480b2909b18ac15bdd124a562ae005c2f41 (diff)
downloadQt-1bb5999cdca0a70df3f96d596c83c3cf7c97c5fd.zip
Qt-1bb5999cdca0a70df3f96d596c83c3cf7c97c5fd.tar.gz
Qt-1bb5999cdca0a70df3f96d596c83c3cf7c97c5fd.tar.bz2
Merge commit 'c0b81480b2909b18ac15bdd124a562ae005c2f41' into origin-4.6
Diffstat (limited to 'src/gui/egl/qegl.cpp')
-rw-r--r--src/gui/egl/qegl.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/egl/qegl.cpp b/src/gui/egl/qegl.cpp
index cf28dc4..6ee4bfc 100644
--- a/src/gui/egl/qegl.cpp
+++ b/src/gui/egl/qegl.cpp
@@ -429,7 +429,10 @@ QString QEglContext::extensions()
bool QEglContext::hasExtension(const char* extensionName)
{
- return extensions().contains(QLatin1String(extensionName));
+ QList<QByteArray> extensions =
+ QByteArray(reinterpret_cast<const char *>
+ (eglQueryString(QEglContext::defaultDisplay(0), EGL_EXTENSIONS))).split(' ');
+ return extensions.contains(extensionName);
}
QEglContext *QEglContext::currentContext(QEgl::API api)