diff --git a/src/Engine/RenderBackend/Mesh.cpp b/src/Engine/RenderBackend/Mesh.cpp index efe9265d..1765c6c3 100644 --- a/src/Engine/RenderBackend/Mesh.cpp +++ b/src/Engine/RenderBackend/Mesh.cpp @@ -77,7 +77,11 @@ void Mesh::createVertexBuffer(void *vertices, size_t vbSize, BufferAccessType ac } void Mesh::resizeVertexBuffer(size_t vbSize) { - //todo! + if (mVertexBuffer == nullptr) { + return; + } + + mVertexBuffer->m_buffer.resize(vbSize); }