Add cglContextForContext to QCocoaNativeInterface.
authorZeno Albisser <zeno@webkit.org>
Fri, 12 Oct 2012 14:33:40 +0000 (16:33 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 15 Oct 2012 19:51:41 +0000 (21:51 +0200)
commit00d78dac2fd2312f47f862ad3538263cca14426e
treef2fc9d3f519162bbfc5b0798debf781cd21231f5
parent83ffc56a72cb04d38686e81105684474cebfff2b
Add cglContextForContext to QCocoaNativeInterface.

This change enables receiving the native CGLContextObj 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: Id00efc88a73d7df04a68c022f19d9d1c4f6d386b
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
src/plugins/platforms/cocoa/qcocoanativeinterface.h
src/plugins/platforms/cocoa/qcocoanativeinterface.mm