Make cocoa opengl backend threadsafe.
authorGunnar Sletta <gunnar.sletta@nokia.com>
Thu, 24 Nov 2011 15:38:40 +0000 (16:38 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 25 Nov 2011 08:54:38 +0000 (09:54 +0100)
commit7dabd65ff61b2665821a101fc3f683270986ded8
treef9b75614255ca8e216723932b227b601b36470cf
parente08410ab8db3d7cabf4ef2fc4de40bb6da6d6fef
Make cocoa opengl backend threadsafe.

The current implementation on Mac OS X called update() inside
the cocoa plugin from the GUI thread, which breaks when trying
to use the GL context from another thread and the window gets
resized. We now only call it from makeCurrent()

Change-Id: I025aad3a3b140e85e729816bf3b68827337cc80d
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/plugins/platforms/cocoa/qcocoaglcontext.mm
src/plugins/platforms/cocoa/qcocoawindow.mm