Skip to content

Commit

Permalink
Revert "No need to set if we have no textures"
Browse files Browse the repository at this point in the history
This reverts commit 9b76c03.
  • Loading branch information
Twinklebear committed Feb 25, 2022
1 parent 9b76c03 commit 1aa36dd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backends/vulkan/render_vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -837,9 +837,7 @@ void RenderVulkan::build_shader_descriptor_table()
texture_set_size_info.pDescriptorCounts = &texture_set_size;

alloc_info.pSetLayouts = &textures_desc_layout;
if (!textures.empty()) {
alloc_info.pNext = &texture_set_size_info;
}
alloc_info.pNext = &texture_set_size_info;
CHECK_VULKAN(
vkAllocateDescriptorSets(device->logical_device(), &alloc_info, &textures_desc_set));

Expand Down

0 comments on commit 1aa36dd

Please sign in to comment.