aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLenny Komow <lenny@lunarg.com>2018-02-13 10:30:02 -0700
committerLenny Komow <lenny@lunarg.com>2018-02-13 16:07:23 -0700
commit2c864116978fa446d17d14ef84d2dc250cffd01f (patch)
treef868e9cc46b889ce97bdcab170695785f9675eca
parentc1ee41602fa2f50719b16681bdf7f88d5a5fec77 (diff)
downloadvulkan-validation-layers-2c864116978fa446d17d14ef84d2dc250cffd01f.tar.gz
loader: Fix loader skipping layer files
Fix a bug where having a json file in the layer path that isn't a valid layer would cause the other valid layers to be skipped Change-Id: I8346bd223358f271a48799d249d3b3a941dd31f8
-rw-r--r--loader/loader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/loader/loader.c b/loader/loader.c
index dcb2ef1ed..4e260674f 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -3630,7 +3630,8 @@ void loader_layer_scan(const struct loader_instance *inst, struct loader_layer_l
VkResult local_res = loader_add_layer_properties(inst, instance_layers, json, (implicit == 1), file_str);
cJSON_Delete(json);
- if (VK_SUCCESS != local_res) {
+ // If the error is anything other than out of memory we still want to try to load the other layers
+ if (VK_ERROR_OUT_OF_HOST_MEMORY == local_res) {
goto out;
}
}