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>
This commit is contained in:
Jason Barron 2012-10-21 20:29:11 +02:00 committed by The Qt Project
parent 8e62d9acfd
commit 0693082c95

View File

@ -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 =