YaGL/VIGS: GLESv3 workarounds for Mac OS X 10.7 34/20834/1
authorStanislav Vorobiov <s.vorobiov@samsung.com>
Mon, 12 May 2014 12:56:54 +0000 (16:56 +0400)
committerStanislav Vorobiov <s.vorobiov@samsung.com>
Tue, 13 May 2014 06:16:13 +0000 (10:16 +0400)
commit6e36571c369b56f57e962b903e67e9a464c8b5cb
tree56092bdcd662f9203241db6a76923d6043d6f3b2
parent22a343aa1f3c1ac4814f69dc1dc313436df47d14
YaGL/VIGS: GLESv3 workarounds for Mac OS X 10.7

Mac OS X 10.7 supports OpenGL 3.2, however, it doesn't have
all the necessary functions implemented in order to implement
GLESv3 on target. This workaround checks for some mandatory
functions and if at least one of them is not present - we revert
back to OpenGL 2.1. A nicer fix would be checking for OpenGL
functions globally, not in CGL backend, this is a TODO

Change-Id: I9c0acce3220af9ed7276a8586fa18b97d8223079
Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
hw/vigs/vigs_gl_backend_cgl.c
hw/yagl/yagl_drivers/egl_cgl/yagl_egl_cgl.c