GPUOpen-Archive / Anvil

Anvil is a cross-platform framework for Vulkan
MIT License
594 stars 62 forks source link

Copy constructor of BufferBindingElement does not copy size and start offset #66

Closed Silverlan closed 6 years ago

Silverlan commented 6 years ago

The copy constructor for BufferBindingElement (src/wrappers/descriptor_set.cpp) looks like this:

Anvil::DescriptorSet::BufferBindingElement::BufferBindingElement(const BufferBindingElement& in)
{
    buffer_ptr = in.buffer_ptr;
}

The size and _startoffset members should probably be copied as well.

DominikWitczakAMD commented 6 years ago

Thanks for spotting this! Addressed internally, the fix will land in the next week's update.