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 { |