diff options
author | Charles Giessen <charles@lunarg.com> | 2022-11-01 01:38:45 +0300 |
---|---|---|
committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2022-11-01 02:19:23 +0300 |
commit | a17d7fc737e650070e50655b877be1aa206a2031 (patch) | |
tree | b3a281c724d18214f869e943c620c4a8a3c0466d | |
parent | d4fd5773d5a004a841e2e976ef1a23aed53e8330 (diff) |
Test Wrap Layer didn't unwrap in vkGetInstanceProcAddr
Wrapping layer should be unwrapping the instance handle inside of GetProcAddr
functions.
-rw-r--r-- | tests/framework/layer/wrap_objects.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/framework/layer/wrap_objects.cpp b/tests/framework/layer/wrap_objects.cpp index f2ed84a71..ae9ab43bd 100644 --- a/tests/framework/layer/wrap_objects.cpp +++ b/tests/framework/layer/wrap_objects.cpp @@ -670,7 +670,7 @@ VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL wrap_vkGetInstanceProcAddr(VkInstance i VkLayerInstanceDispatchTable *pTable = &inst->layer_disp; if (pTable->GetInstanceProcAddr == NULL) return NULL; - return pTable->GetInstanceProcAddr(instance, funcName); + return pTable->GetInstanceProcAddr(inst->obj, funcName); } VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL GetPhysicalDeviceProcAddr(VkInstance instance, const char *funcName) { @@ -681,7 +681,7 @@ VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL GetPhysicalDeviceProcAddr(VkInstance in VkLayerInstanceDispatchTable *pTable = &inst->layer_disp; if (pTable->GetPhysicalDeviceProcAddr == NULL) return NULL; - return pTable->GetPhysicalDeviceProcAddr(instance, funcName); + return pTable->GetPhysicalDeviceProcAddr(inst->obj, funcName); } } // namespace wrap_objects |