summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-12-31 12:01:43 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-12-31 12:01:43 +0000
commit15bb1ad7bde8e366599435ea0332b39bcfd36e0d (patch)
tree9883430b04c8e46fd51941d210e6f5c36df7f240 /gfx
parentAllow glRef to accept lambdas (diff)
downloadilt-15bb1ad7bde8e366599435ea0332b39bcfd36e0d.tar.bz2
ilt-15bb1ad7bde8e366599435ea0332b39bcfd36e0d.tar.xz
ilt-15bb1ad7bde8e366599435ea0332b39bcfd36e0d.zip
Remove unnecessary initialiser
Diffstat (limited to 'gfx')
-rw-r--r--gfx/models/mesh.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/models/mesh.cpp b/gfx/models/mesh.cpp
index 28cd021..09c2872 100644
--- a/gfx/models/mesh.cpp
+++ b/gfx/models/mesh.cpp
@@ -7,7 +7,7 @@
#define offset_ptr(T, m) ((reinterpret_cast<char *>(1)) + offsetof(T, m) - 1)
Mesh::Mesh(const std::span<const Vertex> vertices, const std::span<const unsigned int> indices, GLenum m) :
- m_vertexArrayBuffers {}, m_numIndices {static_cast<GLsizei>(indices.size())}, mode {m}
+ m_numIndices {static_cast<GLsizei>(indices.size())}, mode {m}
{
glBindVertexArray(m_vertexArrayObject);