diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-08-06 13:28:48 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-08-21 10:55:20 (GMT) |
commit | bb49724be3439311c539a7f5bb0014c5fd83f375 (patch) | |
tree | 7f1d206adbc9b66dc57cc10c6dab3668fcd1d356 /src/gui | |
parent | 07b0bf308e65786c3d72de55b30590c3e8e3133c (diff) | |
download | Qt-bb49724be3439311c539a7f5bb0014c5fd83f375.zip Qt-bb49724be3439311c539a7f5bb0014c5fd83f375.tar.gz Qt-bb49724be3439311c539a7f5bb0014c5fd83f375.tar.bz2 |
Make QEglContext::extensions() static
This is private API
Reviewed-By: Trustme
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/egl/qegl.cpp | 2 | ||||
-rw-r--r-- | src/gui/egl/qegl_p.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/egl/qegl.cpp b/src/gui/egl/qegl.cpp index 9d0ead1..f0df0c9 100644 --- a/src/gui/egl/qegl.cpp +++ b/src/gui/egl/qegl.cpp @@ -402,7 +402,7 @@ void QEglContext::dumpAllConfigs() QString QEglContext::extensions() { - const char* exts = eglQueryString(dpy, EGL_EXTENSIONS); + const char* exts = eglQueryString(QEglContext::defaultDisplay(0), EGL_EXTENSIONS); return QString(QLatin1String(exts)); } diff --git a/src/gui/egl/qegl_p.h b/src/gui/egl/qegl_p.h index b29937b..9412887 100644 --- a/src/gui/egl/qegl_p.h +++ b/src/gui/egl/qegl_p.h @@ -122,8 +122,8 @@ public: void dumpAllConfigs(); - QString extensions(); - bool hasExtension(const char* extensionName); + static QString extensions(); + static bool hasExtension(const char* extensionName); private: QEgl::API apiType; |