summaryrefslogtreecommitdiffstats
path: root/src/gui/egl/qegl_p.h
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-11-09 02:17:42 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-11-09 02:17:42 (GMT)
commitf89fc92d1da06964a890e7800caeab62579a0fb4 (patch)
treea04a9104c912b93b84d56e9a5b07a88935cd7e74 /src/gui/egl/qegl_p.h
parentb48ae5932131b6d0934a50846cad441f6e9f5ccd (diff)
downloadQt-f89fc92d1da06964a890e7800caeab62579a0fb4.zip
Qt-f89fc92d1da06964a890e7800caeab62579a0fb4.tar.gz
Qt-f89fc92d1da06964a890e7800caeab62579a0fb4.tar.bz2
Detect context sharing on EGL systems
Context sharing was enabled on EGL systems, but QGLContext::isSharing() was still returning false because the flag in QGLContextPrivate was not updated. Reviewed-by: Sarah Smith
Diffstat (limited to 'src/gui/egl/qegl_p.h')
-rw-r--r--src/gui/egl/qegl_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/egl/qegl_p.h b/src/gui/egl/qegl_p.h
index 16b5b16..51bdbbe 100644
--- a/src/gui/egl/qegl_p.h
+++ b/src/gui/egl/qegl_p.h
@@ -81,6 +81,7 @@ public:
bool isValid() const;
bool isCurrent() const;
+ bool isSharing() const { return sharing; }
QEgl::API api() const { return apiType; }
void setApi(QEgl::API api) { apiType = api; }
@@ -132,6 +133,7 @@ private:
EGLSurface currentSurface;
bool current;
bool ownsContext;
+ bool sharing;
static EGLDisplay getDisplay(QPaintDevice *device);