fixing projection issue

This commit is contained in:
Kbz-8
2024-10-17 15:37:39 +02:00
parent cf773b586e
commit 74dd8a01e2
13 changed files with 117 additions and 57 deletions

View File

@@ -7,6 +7,7 @@ namespace mlx
void Mesh::Draw(VkCommandBuffer cmd, std::size_t& drawcalls, std::size_t& polygondrawn) const noexcept
{
MLX_PROFILE_FUNCTION();
#pragma omp parallel for
for(std::size_t i = 0; i < m_sub_meshes.size(); i++)
Draw(cmd, drawcalls, polygondrawn, i);
}
@@ -25,6 +26,7 @@ namespace mlx
Mesh::~Mesh()
{
MLX_PROFILE_FUNCTION();
#pragma omp parallel for
for(auto& mesh : m_sub_meshes)
{
mesh.vbo.Destroy();