Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/Vulkan-Loader.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cox <andrew@lunarg.com>2022-06-01 19:51:29 +0300
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2022-06-01 21:48:01 +0300
commita8c17d6a367417509aa7b11cf65083eac2b2f4c9 (patch)
treea9fcdcdd7319be7c8b208cfe11db7921ae941a0e
parent5437a0854fb6b664e2c48c0b8e7b157ac23fe741 (diff)
fix #948 Only calls the first GPDPA in layer chain
-rw-r--r--loader/unknown_function_handling.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/loader/unknown_function_handling.c b/loader/unknown_function_handling.c
index 16120c189..1804eda97 100644
--- a/loader/unknown_function_handling.c
+++ b/loader/unknown_function_handling.c
@@ -183,9 +183,13 @@ 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 &&
- NULL != functions->get_physical_device_proc_addr((VkInstance)inst->instance, funcName)) {
- return true;
+ if (NULL != functions->get_physical_device_proc_addr)
+ {
+ if(NULL != functions->get_physical_device_proc_addr((VkInstance)inst->instance, funcName))
+ {
+ return true;
+ }
+ break;
}
}
}