diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-20 15:00:43 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-20 15:00:43 +0000 |
commit | 9afd53a3295b36b6799324e0e4ba8c37c9f2e376 (patch) | |
tree | fe3372be6381c790a1d0143e918f16ededb91dad /gfx/models/mesh.cpp | |
parent | Add a non-threaded worker (diff) | |
download | ilt-9afd53a3295b36b6799324e0e4ba8c37c9f2e376.tar.bz2 ilt-9afd53a3295b36b6799324e0e4ba8c37c9f2e376.tar.xz ilt-9afd53a3295b36b6799324e0e4ba8c37c9f2e376.zip |
Fix constness of Mesh constructor params
Diffstat (limited to 'gfx/models/mesh.cpp')
-rw-r--r-- | gfx/models/mesh.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/models/mesh.cpp b/gfx/models/mesh.cpp index 3487083..0834394 100644 --- a/gfx/models/mesh.cpp +++ b/gfx/models/mesh.cpp @@ -1,7 +1,7 @@ #include "mesh.h"
#include "vertex.hpp"
-Mesh::Mesh(std::span<Vertex> vertices, std::span<unsigned int> indices, GLenum m) :
+Mesh::Mesh(const std::span<const Vertex> vertices, const std::span<const unsigned int> indices, GLenum m) :
m_vertexArrayObject {}, m_vertexArrayBuffers {}, m_numIndices {indices.size()}, mode {m}
{
glGenVertexArrays(1, &m_vertexArrayObject);
|