targets/egl: Improve st_GL.so loading.
authorChia-I Wu <olv@lunarg.com>
Fri, 10 Dec 2010 02:44:03 +0000 (10:44 +0800)
committerChia-I Wu <olv@lunarg.com>
Fri, 10 Dec 2010 03:01:05 +0000 (11:01 +0800)
commit83bdd402aa3b83c121d6764328f831b1629e41a2
tree6fd43685805f9de9398c6afc8045b52d6357d7a8
parent6efd963a2372a4e51e3550a97858105013a096e7
targets/egl: Improve st_GL.so loading.

When the application is not linked to any libGL*.so, loading st_GL.so
would give

  /usr/local/lib/egl/st_GL.so: undefined symbol: _glapi_tls_Context

In that case, load libGL.so and try again.  This works because
util_dl_open loads with RTLD_GLOBAL.

Fix "clear" OpenGL ES 1.1 demo.
src/gallium/targets/egl/egl.c