summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/egl-static/egl.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2011-06-23 20:08:53 +0900
committerChia-I Wu <[email protected]>2011-06-24 16:43:03 +0900
commit7451bffad41a8ab7c61c9799b351c031852eb780 (patch)
tree300d42077d9802b7bb7aa998d563ba2960da286d /src/gallium/targets/egl-static/egl.c
parenta000745f80f695cfa0cd1dc206869eeb5f87f36f (diff)
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).
Diffstat (limited to 'src/gallium/targets/egl-static/egl.c')
-rw-r--r--src/gallium/targets/egl-static/egl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/targets/egl-static/egl.c b/src/gallium/targets/egl-static/egl.c
index eee97a5ca05..2caad0e1ee0 100644
--- a/src/gallium/targets/egl-static/egl.c
+++ b/src/gallium/targets/egl-static/egl.c
@@ -170,7 +170,7 @@ loader_fini(void)
struct st_module *stmod = &st_modules[i];
if (stmod->stapi) {
- stmod->stapi->destroy(stmod->stapi);
+ egl_st_destroy_api(stmod->stapi);
stmod->stapi = NULL;
}
stmod->initialized = FALSE;