fix invalid VkDevice in vkGetDeviceQueue
This commit is contained in:
parent
37381e2e1d
commit
1bac9dcfee
1 changed files with 2 additions and 2 deletions
|
@ -132,8 +132,8 @@ PTK_OPTION(VkDevice) vk_create_logical_dev(VkPhysicalDevice physical_dev, VkSurf
|
|||
)
|
||||
);
|
||||
|
||||
vkGetDeviceQueue(g_dev, g_queue_family_indices.graphics.value, 0, &g_graphics_queue);
|
||||
vkGetDeviceQueue(g_dev, g_queue_family_indices.present.value, 0, &g_present_queue);
|
||||
vkGetDeviceQueue(ret, g_queue_family_indices.graphics.value, 0, &g_graphics_queue);
|
||||
vkGetDeviceQueue(ret, g_queue_family_indices.present.value, 0, &g_present_queue);
|
||||
|
||||
return PTK_OPTION_SOME(VkDevice, ret);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue