src/glCompiler.cpp

changeset 1063
1f15c52c11f6
parent 1062
4119185b56ca
child 1065
c8ecddbd99e9
equal deleted inserted replaced
1062:4119185b56ca 1063:1f15c52c11f6
263 263
264 ++it; 264 ++it;
265 } 265 }
266 266
267 glBindBuffer (GL_ARRAY_BUFFER, m_vbo[vbonum]); 267 glBindBuffer (GL_ARRAY_BUFFER, m_vbo[vbonum]);
268 glBufferData (GL_ARRAY_BUFFER, vbodata.size() * sizeof(GLfloat), vbodata.constData(), GL_STATIC_DRAW); 268 glBufferData (GL_ARRAY_BUFFER, length(vbodata) * sizeof(GLfloat), vbodata.constData(), GL_STATIC_DRAW);
269 glBindBuffer (GL_ARRAY_BUFFER, 0); 269 glBindBuffer (GL_ARRAY_BUFFER, 0);
270 CHECK_GL_ERROR(); 270 CHECK_GL_ERROR();
271 m_vboChanged[vbonum] = false; 271 m_vboChanged[vbonum] = false;
272 m_vboSizes[vbonum] = vbodata.size(); 272 m_vboSizes[vbonum] = length(vbodata);
273 } 273 }
274 274
275 275
276 void GLCompiler::dropObjectInfo (LDObject* obj) 276 void GLCompiler::dropObjectInfo (LDObject* obj)
277 { 277 {

mercurial