Skip to content

Commit

Permalink
Fix a bug where a buffer size is changed when UpdateData is called in…
Browse files Browse the repository at this point in the history
… OpenGL Backend
  • Loading branch information
durswd committed Jul 19, 2023
1 parent 6753838 commit 1895d81
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,6 @@ void UniformBuffer::UpdateData(const void* src, int32_t size, int32_t offset)
{
assert(buffer_.size() >= size + offset && offset >= 0);

buffer_.resize(size);

if (auto data = static_cast<const uint8_t*>(src))
{
memcpy(buffer_.data() + offset, src, size);
Expand Down

0 comments on commit 1895d81

Please sign in to comment.