diff -r 56cd8111b7f7 -r 41300fa6a67c src/opengl/qgl_qws.cpp --- 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(shareContext)->d_func()->sharing = true; #if defined(EGL_VERSION_1_1) if (d->glFormat.swapInterval() != -1 && devType == QInternal::Widget)