mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
aux/vk: remove duplication of vk_get_loader_functions functionality
This commit is contained in:
parent
1ae1e695e2
commit
7174545ee8
|
@ -1626,16 +1626,17 @@ vk_init_from_given(struct vk_bundle *vk,
|
|||
// First memset it clear.
|
||||
U_ZERO(vk);
|
||||
|
||||
vk->vkGetInstanceProcAddr = vkGetInstanceProcAddr;
|
||||
ret = vk_get_loader_functions(vk, vkGetInstanceProcAddr);
|
||||
if (ret != VK_SUCCESS) {
|
||||
goto err_memset;
|
||||
}
|
||||
|
||||
vk->instance = instance;
|
||||
vk->physical_device = physical_device;
|
||||
vk->device = device;
|
||||
vk->queue_family_index = queue_family_index;
|
||||
vk->queue_index = queue_index;
|
||||
|
||||
// Not really needed but just in case.
|
||||
vk->vkCreateInstance = GET_PROC(vk, vkCreateInstance);
|
||||
|
||||
// Fill in all instance functions.
|
||||
ret = vk_get_instance_functions(vk);
|
||||
if (ret != VK_SUCCESS) {
|
||||
|
|
Loading…
Reference in a new issue