From: Jason Barron Date: Sun, 21 Oct 2012 18:29:11 +0000 (+0200) Subject: Pass the correct handle to the Windows EGL context constructor. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0693082c95c1833f686accee74024db4eead3003;p=profile%2Fivi%2Fqtbase.git 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 --- diff --git a/src/plugins/platforms/windows/qwindowsintegration.cpp b/src/plugins/platforms/windows/qwindowsintegration.cpp index 50ffb85..f95fbf4 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(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 =