cocoa: handle failure on pixel format creation
commit941668b5a40227012aaf840f1c57eb7d91f756f0
authorStefano Pigozzi <stefano.pigozzi@gmail.com>
Mon, 14 May 2012 14:28:43 +0000 (14 16:28 +0200)
committerUoti Urpala <uau@mplayer2.org>
Mon, 10 Sep 2012 11:14:00 +0000 (10 14:14 +0300)
tree2d55b09999d4d056dd486157c3a22046bfdcbc30
parent29b10c93473c4f5a10a940d0b9aceb4c462b5d6e
cocoa: handle failure on pixel format creation

This didn't make any difference on with OpenGL 2.1, but with the
introduction of OpenGL3.2 it's possible for the pixel format creation to
fail (if OpenGL3.2 is not supported).

This code handles the failure case accordingly.
libvo/cocoa_common.m