libs/vkd3d: Fix updating descriptor sets for descriptor tables with gaps.

Fixes 9afaed918da32e848c19e81beceda41ef67f459a.
This commit is contained in:
Józef Kucia 2017-09-11 22:35:16 +02:00
parent 32966338df
commit 1cde37d341

View File

@ -1876,7 +1876,7 @@ static void d3d12_command_list_update_descriptor_table(struct d3d12_command_list
descriptor += range->offset;
}
for (j = 0; j < range->descriptor_count; ++j)
for (j = 0; j < range->descriptor_count; ++j, ++descriptor)
{
unsigned int register_idx = range->base_register_idx + j;
@ -1895,7 +1895,6 @@ static void d3d12_command_list_update_descriptor_table(struct d3d12_command_list
current_image_info, descriptor, bindings->descriptor_set, range->binding, j))
continue;
++descriptor;
++descriptor_count;
++current_descriptor_write;
++current_image_info;