aboutsummaryrefslogtreecommitdiff
path: root/loader
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2014-12-01 14:22:40 -0700
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2014-12-02 14:44:58 -0700
commit5577474c45265639f35b91d64b36fe5e2b2a59c7 (patch)
tree60922470fda355e6a339b4fcbd4ca4e034d74d04 /loader
parenta3f4282723e292f0f6ec99a3ecf92cf9c9d445ac (diff)
downloadusermoji-5577474c45265639f35b91d64b36fe5e2b2a59c7.tar.xz
layers: Add Multi layer with example of multiple layers per file.
Diffstat (limited to 'loader')
-rw-r--r--loader/loader.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/loader/loader.c b/loader/loader.c
index f4f6d1a2..1fc7e3b3 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -821,7 +821,10 @@ extern XGL_UINT loader_activate_layers(XGL_PHYSICAL_GPU gpu, const XGL_DEVICE_CR
nextGpuObj->nextObject = gpuObj;
gpuObj = nextGpuObj;
- nextGPA = dlsym(icd->layer_libs[gpu_index][i].lib_handle, "xglGetProcAddr");
+ char funcStr[256];
+ snprintf(funcStr, 256, "%sGetProcAddr",icd->layer_libs[gpu_index][i].name);
+ if ((nextGPA = dlsym(icd->layer_libs[gpu_index][i].lib_handle, funcStr)) == NULL)
+ nextGPA = dlsym(icd->layer_libs[gpu_index][i].lib_handle, "xglGetProcAddr");
if (!nextGPA) {
loader_log(XGL_DBG_MSG_ERROR, 0, "Failed to find xglGetProcAddr in layer %s", icd->layer_libs[gpu_index][i].name);
continue;