diff --git a/src/render/opengl/gl_engine.cpp b/src/render/opengl/gl_engine.cpp index bc5a70fa..477cdac9 100644 --- a/src/render/opengl/gl_engine.cpp +++ b/src/render/opengl/gl_engine.cpp @@ -264,7 +264,7 @@ void GLAttributeBuffer::setData_helper(const std::vector& data) { // do the actual copy dataSize = data.size(); - glBufferSubData(getTarget(), 0, dataSize * sizeof(T), &data[0]); + glBufferSubData(getTarget(), 0, dataSize * sizeof(T), data.data()); checkGLError(); }