mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-22 07:24:34 +00:00
Removed commented out lines.
This commit is contained in:
parent
f5d3061043
commit
0f307e06e8
@ -1619,8 +1619,6 @@ VkExtent2D find_extent(VkSurfaceCapabilitiesKHR const& capabilities, uint32_t de
|
|||||||
|
|
||||||
void destroy_swapchain(Swapchain const& swapchain) {
|
void destroy_swapchain(Swapchain const& swapchain) {
|
||||||
if (swapchain.device != VK_NULL_HANDLE && swapchain.swapchain != VK_NULL_HANDLE) {
|
if (swapchain.device != VK_NULL_HANDLE && swapchain.swapchain != VK_NULL_HANDLE) {
|
||||||
/*detail::vulkan_functions().fp_vkDestroySwapchainKHR(
|
|
||||||
swapchain.device, swapchain.swapchain, swapchain.allocation_callbacks);*/
|
|
||||||
swapchain.internal_table.fp_vkDestroySwapchainKHR(swapchain.device, swapchain.swapchain, swapchain.allocation_callbacks);
|
swapchain.internal_table.fp_vkDestroySwapchainKHR(swapchain.device, swapchain.swapchain, swapchain.allocation_callbacks);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1805,8 +1803,6 @@ detail::Result<std::vector<VkImageView>> Swapchain::get_image_views() {
|
|||||||
createInfo.subresourceRange.baseArrayLayer = 0;
|
createInfo.subresourceRange.baseArrayLayer = 0;
|
||||||
createInfo.subresourceRange.layerCount = 1;
|
createInfo.subresourceRange.layerCount = 1;
|
||||||
|
|
||||||
/*VkResult res = detail::vulkan_functions().fp_vkCreateImageView(
|
|
||||||
device, &createInfo, allocation_callbacks, &views[i]);*/
|
|
||||||
VkResult res = internal_table.fp_vkCreateImageView(device, &createInfo, allocation_callbacks, &views[i]);
|
VkResult res = internal_table.fp_vkCreateImageView(device, &createInfo, allocation_callbacks, &views[i]);
|
||||||
if (res != VK_SUCCESS)
|
if (res != VK_SUCCESS)
|
||||||
return detail::Error{ SwapchainError::failed_create_swapchain_image_views, res };
|
return detail::Error{ SwapchainError::failed_create_swapchain_image_views, res };
|
||||||
|
Loading…
Reference in New Issue
Block a user