mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-07 15:20:58 +00:00
vk_info: fix uninitialized DescriptorSetSlot
This commit is contained in:
committed by
Baldur Karlsson
parent
19aed5b1f2
commit
556cd39276
@@ -90,6 +90,7 @@ void DescSetLayout::UpdateBindingsArray(const DescSetLayout &prevLayout,
|
||||
{
|
||||
// allocate new slot array
|
||||
DescriptorSetSlot *newSlots = new DescriptorSetSlot[bindings[i].descriptorCount];
|
||||
memset(newSlots, 0, sizeof(DescriptorSetSlot) * bindings[i].descriptorCount);
|
||||
|
||||
// copy over any previous bindings that overlapped
|
||||
if(i < prevLayout.bindings.size())
|
||||
|
||||
Reference in New Issue
Block a user