--- a/src/glCompiler.cpp Sat Jan 28 14:13:01 2017 +0200 +++ b/src/glCompiler.cpp Sat Jan 28 14:14:28 2017 +0200 @@ -199,7 +199,7 @@ void GLCompiler::needMerge() { - for (int i = 0; i < length (m_vboChanged); ++i) + for (int i = 0; i < countof (m_vboChanged); ++i) m_vboChanged[i] = true; } @@ -265,11 +265,11 @@ } glBindBuffer (GL_ARRAY_BUFFER, m_vbo[vbonum]); - glBufferData (GL_ARRAY_BUFFER, length(vbodata) * sizeof(GLfloat), vbodata.constData(), GL_STATIC_DRAW); + glBufferData (GL_ARRAY_BUFFER, countof(vbodata) * sizeof(GLfloat), vbodata.constData(), GL_STATIC_DRAW); glBindBuffer (GL_ARRAY_BUFFER, 0); CHECK_GL_ERROR(); m_vboChanged[vbonum] = false; - m_vboSizes[vbonum] = length(vbodata); + m_vboSizes[vbonum] = countof(vbodata); }