use the correct instance

This commit is contained in:
Brad Grantham 2022-02-04 22:01:54 -08:00 committed by Charles Giessen
parent ddec051dc4
commit 26283303b0

View File

@ -2542,7 +2542,7 @@ VkResult setupLoaderTrampPhysDevGroups(VkInstance instance, struct loader_instan
}
// Call down and get the content
fpEnumeratePhysicalDeviceGroups(instance, &total_count, local_phys_dev_groups);
fpEnumeratePhysicalDeviceGroups(inst->instance, &total_count, local_phys_dev_groups);
if (VK_SUCCESS != res) {
loader_log(inst, VULKAN_LOADER_ERROR_BIT, 0,
"setupLoaderTrampPhysDevGroups: Failed during dispatch call of "
@ -3469,4 +3469,4 @@ LOADER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkQueueSubmit2(VkQueue queue, uint3
VkFence fence) {
const VkLayerDispatchTable *disp = loader_get_dispatch(queue);
return disp->QueueSubmit2(queue, submitCount, pSubmits, fence);
}
}