loader: Fix bug in searching for missing extension
authorHernan Liatis <hliatis@google.com>
Tue, 19 Feb 2019 23:15:19 +0000 (15:15 -0800)
committerLenny Komow <lenny@lunarg.com>
Mon, 24 Jun 2019 23:21:15 +0000 (17:21 -0600)
Fix small bug in instance creation when extension
(VK_KHR_surface) does not exist. Layer names were
traversed incorrectly.

Change-Id: Icbf435550b6e03ef16003c027d30da3ce5388e93

loader/loader.c

index 850945389fcb1381bce7f63178d2744a5194bda9..f2db7924a272fbfce07ff5631f180429878ab6fd 100644 (file)
@@ -5821,7 +5821,7 @@ VkResult loader_validate_instance_extensions(struct loader_instance *inst, const
                 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;