Implement isSharing() and isValid() methods for QCocoaGLContext
authorTeemu Katajisto <teemu.katajisto@digia.com>
Thu, 23 Feb 2012 14:50:29 +0000 (16:50 +0200)
committerQt by Nokia <qt-info@nokia.com>
Sat, 25 Feb 2012 10:43:35 +0000 (11:43 +0100)
commite430ddfafcc6e8fa9fecb9c816908c3edce08d77
tree082a9d2f4ec28dcebdf3507555cdfbb633d1eca8
parent6ee0135e9d43bfd56d948d088781dc014ef39aa1
Implement isSharing() and isValid() methods for QCocoaGLContext

Shared resources may have been used when initializing NSOpenGLContext
but QCocoaGLContext did not implement isSharing(). This caused
default implementation to return false always and therefore shared
resource test case failed.

Implemented also another missing method, isValid().

Task-number: QTBUG-23061

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