src/glCompiler.cpp

changeset 1063
1f15c52c11f6
parent 1062
4119185b56ca
child 1065
c8ecddbd99e9
--- 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);
 }
 
 

mercurial