From 9afd53a3295b36b6799324e0e4ba8c37c9f2e376 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 20 Feb 2021 15:00:43 +0000 Subject: Fix constness of Mesh constructor params --- gfx/models/mesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gfx/models/mesh.cpp') 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 vertices, std::span indices, GLenum m) : +Mesh::Mesh(const std::span vertices, const std::span indices, GLenum m) : m_vertexArrayObject {}, m_vertexArrayBuffers {}, m_numIndices {indices.size()}, mode {m} { glGenVertexArrays(1, &m_vertexArrayObject); -- cgit v1.2.3