src/opengl/qgl_qws.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
--- a/src/opengl/qgl_qws.cpp	Tue Jan 26 12:42:25 2010 +0200
+++ b/src/opengl/qgl_qws.cpp	Tue Feb 02 00:43:10 2010 +0200
@@ -206,6 +206,9 @@
         d->eglContext = 0;
         return false;
     }
+    d->sharing = d->eglContext->isSharing();
+    if (d->sharing && shareContext)
+        const_cast<QGLContext *>(shareContext)->d_func()->sharing = true;
 
 #if defined(EGL_VERSION_1_1)
     if (d->glFormat.swapInterval() != -1 && devType == QInternal::Widget)