--- a/src/glCompiler.cpp Sat Jan 28 13:49:09 2017 +0200 +++ b/src/glCompiler.cpp Sat Jan 28 14:01:19 2017 +0200 @@ -265,11 +265,11 @@ } glBindBuffer (GL_ARRAY_BUFFER, m_vbo[vbonum]); - glBufferData (GL_ARRAY_BUFFER, vbodata.size() * sizeof(GLfloat), vbodata.constData(), GL_STATIC_DRAW); + glBufferData (GL_ARRAY_BUFFER, length(vbodata) * sizeof(GLfloat), vbodata.constData(), GL_STATIC_DRAW); glBindBuffer (GL_ARRAY_BUFFER, 0); CHECK_GL_ERROR(); m_vboChanged[vbonum] = false; - m_vboSizes[vbonum] = vbodata.size(); + m_vboSizes[vbonum] = length(vbodata); }