Skip to content

Commit

Permalink
fix buffer size bug
Browse files Browse the repository at this point in the history
  • Loading branch information
WinteryFox committed Jan 30, 2024
1 parent 542427e commit 063d719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/vk/VkBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ namespace Vixen::Vk {
}

void VkBuffer::setData(const std::byte* data) const {
memcpy(allocationInfo.pMappedData, data, allocationInfo.size);
memcpy(allocationInfo.pMappedData, data, getSize());
}

::VkBuffer VkBuffer::getBuffer() const { return buffer; }
Expand Down

0 comments on commit 063d719

Please sign in to comment.