Revert "fix #948 Only calls the first GPDPA in layer chain"
authorCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Thu, 2 Jun 2022 01:14:04 +0000 (19:14 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Thu, 2 Jun 2022 01:26:13 +0000 (19:26 -0600)
This reverts commit a8c17d6a367417509aa7b11cf65083eac2b2f4c9.

loader/unknown_function_handling.c

index 1804eda97efe860347f0e12a67076bc56800f2a1..16120c189bf57db72a87866e80ab46f9855ede30 100644 (file)
@@ -183,13 +183,9 @@ bool loader_check_layer_list_for_phys_dev_ext_address(struct loader_instance *in
         // it and see if it returns a valid pointer for this function name.
         if (layer_prop_list[layer].interface_version > 1) {
             const struct loader_layer_functions *const functions = &(layer_prop_list[layer].functions);
-            if (NULL != functions->get_physical_device_proc_addr)
-            {
-                if(NULL != functions->get_physical_device_proc_addr((VkInstance)inst->instance, funcName))
-                {
-                    return true;
-                }
-                break;
+            if (NULL != functions->get_physical_device_proc_addr &&
+                NULL != functions->get_physical_device_proc_addr((VkInstance)inst->instance, funcName)) {
+                return true;
             }
         }
     }