diff options
| author | Tony Barbour <tony@LunarG.com> | 2017-05-17 12:17:18 -0600 |
|---|---|---|
| committer | Tony Barbour <tony@LunarG.com> | 2017-05-23 11:21:31 -0600 |
| commit | d15adb4a697fbcae9c1dcd6519b8d1d9bb335647 (patch) | |
| tree | 8e56773cd49643120b937bca760dd615ee38b843 | |
| parent | e417ef986ad1ed578c25a9c4644350f4c587c2e6 (diff) | |
| download | usermoji-d15adb4a697fbcae9c1dcd6519b8d1d9bb335647.tar.xz | |
loader: Use correct instance in gpdpa call
Change-Id: I662a6a182680ef7da6ad51a738fcc5aaff54f043
| -rw-r--r-- | loader/loader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/loader.c b/loader/loader.c index b2bf86fd..51397dd6 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -3740,7 +3740,7 @@ static bool loader_check_layer_list_for_phys_dev_ext_address(struct loader_insta 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, funcName)) { + NULL != functions->get_physical_device_proc_addr((VkInstance)inst->instance, funcName)) { return true; } } @@ -3920,7 +3920,7 @@ bool loader_phys_dev_ext_gpa(struct loader_instance *inst, const char *funcName, struct loader_layer_properties *layer_prop = &inst->expanded_activated_layer_list.list[i]; if (layer_prop->interface_version > 1 && NULL != layer_prop->functions.get_physical_device_proc_addr) { inst->disp->phys_dev_ext[idx] = - (PFN_PhysDevExt)layer_prop->functions.get_physical_device_proc_addr((VkInstance)inst, funcName); + (PFN_PhysDevExt)layer_prop->functions.get_physical_device_proc_addr((VkInstance)inst->instance, funcName); if (NULL != inst->disp->phys_dev_ext[idx]) { break; } |
