-
Ander Conselvan de Oliveira authored
The time spent loading EGL and GLES libraries from disk can be a considerable hit in some embedded use cases. If Weston is compiled with EGL support, the binary will depend on those libraries, even if a software renderer is in use. This patch splits the GL renderer into a separate loadable module, and moves the dependency on EGL and GLES to it. The backends still need the EGL headers for the native types and EGLint. The function load_module() is renamed to weston_load_module() and exported, so that it can be used by the backends. The gl renderer interface is changed so that there is only one symbol that needs to be dlsym()'d. This symbol contains pointers to all the functions and data necessary to interact with the renderer. As a side effect, this change simplifies gl-renderer.h a great deal.
97f2952b