Commit 396ed246 authored by Florian Oetke's avatar Florian Oetke
Browse files

fixed out-of-bounds-error in animation pass

parent d5cbc199
Pipeline #2730 passed with stage
in 13 minutes and 48 seconds
......@@ -221,6 +221,9 @@ namespace mirrage::renderer {
geo.animation_uniform_offset = offset;
}
// add padding to allow overstepping
required_size += gsl::narrow<std::uint32_t>(64u * 3u * 4u * sizeof(float));
if(_animation_uniforms.resize(required_size)) {
// recreate DescriptorSet if the buffer has been recreated
auto anim_desc_buffer_write = vk::DescriptorBufferInfo{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment