Add nsOpenGLContextForContext to QCocoaNativeInterface.
authorZeno Albisser <zeno@webkit.org>
Fri, 23 Nov 2012 09:52:22 +0000 (10:52 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 23 Nov 2012 16:04:00 +0000 (17:04 +0100)
commit92724e533d13f56d359122d7d83ddc2316a75ef8
tree91a46c2e70f0c328c111668412243301ceaaaa8f
parent7120cf16d21923ecbae37c17c071eca2e7f891ab
Add nsOpenGLContextForContext to QCocoaNativeInterface.

This change enables receiving the native NSOpenGLContext that is used
by a QOpenGLContext. This clearly is non-public api that is only meant to
be used as a last resort for cases where it is really necessary to
get hold of a native context object.

Change-Id: Iea7c6abb458acc7aa15926052673270d25d1d9d1
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
src/plugins/platforms/cocoa/qcocoanativeinterface.h
src/plugins/platforms/cocoa/qcocoanativeinterface.mm