Cocoa: Clean up context creation.
authorMorten Johan Sørvig <morten.sorvig@theqtcompany.com>
Thu, 20 Aug 2015 13:37:04 +0000 (15:37 +0200)
committerMorten Johan Sørvig <morten.sorvig@theqtcompany.com>
Wed, 2 Sep 2015 07:20:04 +0000 (07:20 +0000)
commitba94e26b8b233456b004084892464ec55b20800c
tree9870857f1db36ec035955b772239e13cc85b8ddd
parent1b459a8124b77fdef12e05d8a77b471be9097776
Cocoa: Clean up context creation.

Make the fallback to creating an unshared context
actually work by using correct [initWithFormat: ]
code.

Warn and return early on context creation failure
instead of continuing and crashing.

Change-Id: Ic88f419eaa717436aefc9c1da36c47e0ccb3e956
Task-number: QTBUG-47825
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
src/plugins/platforms/cocoa/qcocoaglcontext.mm