equal
deleted
inserted
replaced
52 #include <qapplication.h> |
52 #include <qapplication.h> |
53 #include <qdesktopwidget> |
53 #include <qdesktopwidget> |
54 |
54 |
55 #include <windows.h> |
55 #include <windows.h> |
56 |
56 |
57 #include "qegl_p.h" |
57 #include <private/qegl_p.h> |
58 #include "qgl_egl_p.h" |
58 #include <private/qgl_egl_p.h> |
59 #include "qgl_cl_p.h" |
59 #include <private/qgl_cl_p.h> |
60 |
60 |
61 |
61 |
62 QT_BEGIN_NAMESPACE |
62 QT_BEGIN_NAMESPACE |
63 |
63 |
64 |
64 |
164 (shareContext ? shareContext->d_func()->eglContext : 0)) { |
164 (shareContext ? shareContext->d_func()->eglContext : 0)) { |
165 delete d->eglContext; |
165 delete d->eglContext; |
166 d->eglContext = 0; |
166 d->eglContext = 0; |
167 return false; |
167 return false; |
168 } |
168 } |
|
169 d->sharing = d->eglContext->isSharing(); |
|
170 if (d->sharing && shareContext) |
|
171 const_cast<QGLContext *>(shareContext)->d_func()->sharing = true; |
169 |
172 |
170 #if defined(EGL_VERSION_1_1) |
173 #if defined(EGL_VERSION_1_1) |
171 if (d->glFormat.swapInterval() != -1 && devType == QInternal::Widget) |
174 if (d->glFormat.swapInterval() != -1 && devType == QInternal::Widget) |
172 eglSwapInterval(d->eglContext->display(), d->glFormat.swapInterval()); |
175 eglSwapInterval(d->eglContext->display(), d->glFormat.swapInterval()); |
173 #endif |
176 #endif |