diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-11-09 02:17:42 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-11-09 02:17:42 (GMT) |
commit | f89fc92d1da06964a890e7800caeab62579a0fb4 (patch) | |
tree | a04a9104c912b93b84d56e9a5b07a88935cd7e74 /src/opengl | |
parent | b48ae5932131b6d0934a50846cad441f6e9f5ccd (diff) | |
download | Qt-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/opengl')
-rw-r--r-- | src/opengl/qgl_qws.cpp | 1 | ||||
-rw-r--r-- | src/opengl/qgl_wince.cpp | 1 | ||||
-rw-r--r-- | src/opengl/qgl_x11egl.cpp | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/opengl/qgl_qws.cpp b/src/opengl/qgl_qws.cpp index 5e59975..de9c6ae 100644 --- a/src/opengl/qgl_qws.cpp +++ b/src/opengl/qgl_qws.cpp @@ -206,6 +206,7 @@ bool QGLContext::chooseContext(const QGLContext* shareContext) d->eglContext = 0; return false; } + d->sharing = d->eglContext->isSharing(); #if defined(EGL_VERSION_1_1) if (d->glFormat.swapInterval() != -1 && devType == QInternal::Widget) diff --git a/src/opengl/qgl_wince.cpp b/src/opengl/qgl_wince.cpp index fea2d3a..86fe3ba 100644 --- a/src/opengl/qgl_wince.cpp +++ b/src/opengl/qgl_wince.cpp @@ -166,6 +166,7 @@ bool QGLContext::chooseContext(const QGLContext* shareContext) d->eglContext = 0; return false; } + d->sharing = d->eglContext->isSharing(); #if defined(EGL_VERSION_1_1) if (d->glFormat.swapInterval() != -1 && devType == QInternal::Widget) diff --git a/src/opengl/qgl_x11egl.cpp b/src/opengl/qgl_x11egl.cpp index 9b20297..5325451 100644 --- a/src/opengl/qgl_x11egl.cpp +++ b/src/opengl/qgl_x11egl.cpp @@ -115,6 +115,7 @@ bool QGLContext::chooseContext(const QGLContext* shareContext) d->eglContext = 0; return false; } + d->sharing = d->eglContext->isSharing(); #if defined(EGL_VERSION_1_1) if (d->glFormat.swapInterval() != -1 && devType == QInternal::Widget) |