YaGL: Fixed a crash in MacOS with Radeon HD
authorjinhyung.jo <jinhyung.jo@samsung.com>
Mon, 13 Jul 2015 11:19:28 +0000 (20:19 +0900)
committerjinhyung.jo <jinhyung.jo@samsung.com>
Tue, 14 Jul 2015 06:25:29 +0000 (15:25 +0900)
commita7390cd1b57db03af756babd44861ffcb14e65cf
tree8e289fabc2491ba7d03a1e63dd4941a1b4ed56ae
parent97c978dc34ee6ed6fe6ff52faba6fe3631572ea1
YaGL: Fixed a crash in MacOS with Radeon HD

In OS X with Radeon HD,
CGLChoosePixelFormat fails to create the CGLPixelFormatObj
with the prefered_pixel_format_legacy_attrs.
But it does not return an error value.
There is a bug in the error handling in that case.
For that reason, yagl_egl_driver_create fails.

Change-Id: I2eb7b514287d1a5ec4801c76761841763f45594b
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
hw/yagl/yagl_drivers/egl_cgl/yagl_egl_cgl.c