targets/egl-static: allow st/mesa to be dynamically loaded
authorChia-I Wu <olv@lunarg.com>
Thu, 23 Jun 2011 11:08:53 +0000 (20:08 +0900)
committerChia-I Wu <olv@lunarg.com>
Fri, 24 Jun 2011 07:43:03 +0000 (16:43 +0900)
commit7451bffad41a8ab7c61c9799b351c031852eb780
tree300d42077d9802b7bb7aa998d563ba2960da286d
parenta000745f80f695cfa0cd1dc206869eeb5f87f36f
targets/egl-static: allow st/mesa to be dynamically loaded

When shared glapi is not enabled, there are two glapi providers and we
cannot decide which one to link to at build time.  It results in
unresolved symbols in st/mesa.  This commit makes st/mesa a loadable
module when shared glapi is not enabled, and hopes that the apps will
link to one of the glapi providers (GL or GLES).
src/gallium/targets/egl-static/egl.c
src/gallium/targets/egl-static/egl_st.c
src/gallium/targets/egl-static/egl_st.h
src/gallium/targets/egl-static/st_GL.c [new file with mode: 0644]