Skip to content

Commit

Permalink
Remove redundant cast
Browse files Browse the repository at this point in the history
  • Loading branch information
nepp95 committed Dec 19, 2024
1 parent 2de9571 commit d46322d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EppoEngine/Source/Renderer/Mesh/Submesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Eppo
Submesh::Submesh(std::string name, const std::vector<Vertex>& vertices, const std::vector<uint32_t>& indices, const std::vector<Primitive>& primitives, const glm::mat4& transform)
: m_Primitives(primitives), m_Name(std::move(name)), m_LocalTransform(transform)
{
m_VertexBuffer = VertexBuffer::Create((void*)vertices.data(), vertices.size() * sizeof(Vertex));
m_IndexBuffer = IndexBuffer::Create((void*)indices.data(), indices.size() * sizeof(uint32_t));
m_VertexBuffer = VertexBuffer::Create(vertices.data(), vertices.size() * sizeof(Vertex));
m_IndexBuffer = IndexBuffer::Create(indices.data(), indices.size() * sizeof(uint32_t));
}
}

0 comments on commit d46322d

Please sign in to comment.