From 9f45c23f47a8935c08059498ac1be72507585471 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 2 Jan 2023 16:51:30 +0000 Subject: Should use value_type, not element_type Works with std::array then too. --- gfx/gl/vertexArrayObject.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/gl/vertexArrayObject.hpp b/gfx/gl/vertexArrayObject.hpp index d90cc59..e0c6d76 100644 --- a/gfx/gl/vertexArrayObject.hpp +++ b/gfx/gl/vertexArrayObject.hpp @@ -50,7 +50,7 @@ private: static void data(const Data & data, const GLuint arrayBuffer, GLenum target) { - using Value = typename Data::element_type; + using Value = typename Data::value_type; glBindBuffer(target, arrayBuffer); glBufferData(target, static_cast(sizeof(Value) * data.size()), data.data(), GL_STATIC_DRAW); } -- cgit v1.2.3