Add missing vkCmdBindDescriptorSets for supportsBindMeshTexturesAtOnce

This commit is contained in:
Benau 2022-09-03 10:30:54 +08:00
parent b0b9f44aeb
commit 784b77723c

View File

@ -1054,6 +1054,12 @@ void GEVulkanDrawCall::render(GEVulkanDriver* vk, GEVulkanCameraSceneNode* cam,
1, &m_texture_descriptor->getDescriptorSet()[cur_mid],
0, NULL);
}
else
{
vkCmdBindDescriptorSets(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS,
m_pipeline_layout, 0, 1,
m_texture_descriptor->getDescriptorSet(), 0, NULL);
}
if (use_base_vertex)
{
vkCmdBindDescriptorSets(cmd,