src/glCompiler.cpp

changeset 1065
c8ecddbd99e9
parent 1063
1f15c52c11f6
child 1072
9ce9496427f2
--- 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);
 }
 
 

mercurial