aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtney@LunarG.com>2015-01-07 10:17:44 -0700
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-02-04 17:58:04 -0700
commit13689628bdc61bb5b72f58fefa6f41b14ecf9dd3 (patch)
tree15459059b0bc81310cc2407963d1d6c7b7d4718d
parent52f6a5793f677e50036d78db0d814eccec5d88a2 (diff)
downloadusermoji-13689628bdc61bb5b72f58fefa6f41b14ecf9dd3.tar.xz
loader: Include layers specified in environment
If application specified layer_info in the CreateDevice call the code would only look for layers the app specified. However, we want to include layers specified in the environment in addition to any specified by the application.
-rw-r--r--loader/loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/loader.c b/loader/loader.c
index c6582796..c4e8a148 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -642,7 +642,7 @@ static XGL_UINT loader_get_layer_libs(struct loader_icd *icd, XGL_UINT gpu_index
layerNames[i].layer_name[len] = '\0';
layerNames[i].lib_name = lib_name;
}
- return pCi->layerCount;
+ return pCi->layerCount + loader_get_layer_env(icd, gpu_index, layerNames);
}
pCi = pCi->pNext;
}