diff options
author | Jason Barron <jason.barron@digia.com> | 2012-10-21 20:29:11 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-22 17:41:47 +0200 |
commit | 0693082c95c1833f686accee74024db4eead3003 (patch) | |
tree | 98af8815cb00584af0ea30c2aeb0d59f35b31082 /src/plugins | |
parent | 8e62d9acfdfcb4cdd96e9e333360722c5d8a3d30 (diff) |
Pass the correct handle to the Windows EGL context constructor.
We should pass the shareHandle here instead of the handle for the
context since that's what it expects.
Change-Id: If851758817057ecc3c3646cba2354becf5a8a839
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platforms/windows/qwindowsintegration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/windows/qwindowsintegration.cpp b/src/plugins/platforms/windows/qwindowsintegration.cpp index 50ffb85b01..f95fbf4b34 100644 --- a/src/plugins/platforms/windows/qwindowsintegration.cpp +++ b/src/plugins/platforms/windows/qwindowsintegration.cpp @@ -375,7 +375,7 @@ QPlatformOpenGLContext return 0; d->m_staticEGLContext = QSharedPointer<QWindowsEGLStaticContext>(staticContext); } - return new QWindowsEGLContext(d->m_staticEGLContext, context->format(), context->handle()); + return new QWindowsEGLContext(d->m_staticEGLContext, context->format(), context->shareHandle()); #else // QT_OPENGL_ES_2 if (d->m_staticOpenGLContext.isNull()) d->m_staticOpenGLContext = |