diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-01-02 16:51:30 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-01-02 16:51:30 +0000 |
commit | 9f45c23f47a8935c08059498ac1be72507585471 (patch) | |
tree | 1355881db4cd594f631b3e3efa18d5f137854137 | |
parent | Add helper for configuring vertex array objects/buffers of arbitrary things (diff) | |
download | ilt-9f45c23f47a8935c08059498ac1be72507585471.tar.bz2 ilt-9f45c23f47a8935c08059498ac1be72507585471.tar.xz ilt-9f45c23f47a8935c08059498ac1be72507585471.zip |
Should use value_type, not element_type
Works with std::array then too.
-rw-r--r-- | gfx/gl/vertexArrayObject.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<GLsizeiptr>(sizeof(Value) * data.size()), data.data(), GL_STATIC_DRAW); } |