Skip to content

Commit

Permalink
Mesh: Implement resize.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimkulling committed Nov 14, 2024
1 parent 7023c4e commit 845a3de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Engine/RenderBackend/Mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit 845a3de

Please sign in to comment.