283 for (auto it = m_objectInfo.begin(); it != m_objectInfo.end();) |
283 for (auto it = m_objectInfo.begin(); it != m_objectInfo.end();) |
284 { |
284 { |
285 if (it.key() == null) |
285 if (it.key() == null) |
286 { |
286 { |
287 it = m_objectInfo.erase (it); |
287 it = m_objectInfo.erase (it); |
288 } |
288 continue; |
289 elif (it.key().toStrongRef()->document() == CurrentDocument() |
289 } |
|
290 |
|
291 if (it.key().toStrongRef()->document() == CurrentDocument() |
290 and not it.key().toStrongRef()->isHidden()) |
292 and not it.key().toStrongRef()->isHidden()) |
291 { |
293 { |
292 vbodata += it->data[vbonum]; |
294 vbodata += it->data[vbonum]; |
293 ++it; |
295 } |
294 } |
296 |
|
297 ++it; |
295 } |
298 } |
296 |
299 |
297 glBindBuffer (GL_ARRAY_BUFFER, m_vbo[vbonum]); |
300 glBindBuffer (GL_ARRAY_BUFFER, m_vbo[vbonum]); |
298 glBufferData (GL_ARRAY_BUFFER, vbodata.size() * sizeof(GLfloat), vbodata.constData(), GL_STATIC_DRAW); |
301 glBufferData (GL_ARRAY_BUFFER, vbodata.size() * sizeof(GLfloat), vbodata.constData(), GL_STATIC_DRAW); |
299 glBindBuffer (GL_ARRAY_BUFFER, 0); |
302 glBindBuffer (GL_ARRAY_BUFFER, 0); |