release buffers properly

This commit is contained in:
SweetId 2023-12-08 16:10:52 +01:00
parent e3f4b74a66
commit 1befc1a3d4
1 changed files with 2 additions and 0 deletions

View File

@ -123,6 +123,8 @@ namespace Nz
m_drawCalls.push_back(std::move(drawCall)); m_drawCalls.push_back(std::move(drawCall));
} }
frame.PushForRelease(std::move(m_vertexBuffer));
frame.PushForRelease(std::move(m_indexBuffer));
// now that we have macro buffers, allocate them on gpu // now that we have macro buffers, allocate them on gpu
size_t size = vertices.size() * sizeof(Nz::VertexStruct_XYZ_Color_UV); size_t size = vertices.size() * sizeof(Nz::VertexStruct_XYZ_Color_UV);