loader: Fix bug in searching for missing extension
Fix small bug in instance creation when extension
(VK_KHR_surface) does not exist. Layer names were
traversed incorrectly.
Change-Id: Icbf435550b6e03ef16003c027d30da3ce5388e93
diff --git a/loader/loader.c b/loader/loader.c
index 8509453..f2db792 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -5821,7 +5821,7 @@
break;
}
- layer_prop = loaderFindLayerProperty(pCreateInfo->ppEnabledLayerNames[j], instance_layers);
+ layer_prop = loaderFindLayerProperty(expanded_layers.list[j].info.layerName, instance_layers);
if (NULL == layer_prop) {
// Should NOT get here, loaderValidateLayers should have already filtered this case out.
continue;