# HG changeset patch # User Teemu Piippo # Date 1410112274 -10800 # Node ID 3c83fe3486b19a46c172882dbab6fdf252f01ee4 # Parent d820588bf4f16b6412e11b0cfa8bbca37f0e7e42 - fixed endless loop in prepareVBO due to badly incremented iterator diff -r d820588bf4f1 -r 3c83fe3486b1 src/glCompiler.cc --- a/src/glCompiler.cc Sun Sep 07 04:15:54 2014 +0300 +++ b/src/glCompiler.cc Sun Sep 07 20:51:14 2014 +0300 @@ -285,13 +285,16 @@ if (it.key() == null) { it = m_objectInfo.erase (it); + continue; } - elif (it.key().toStrongRef()->document() == CurrentDocument() + + if (it.key().toStrongRef()->document() == CurrentDocument() and not it.key().toStrongRef()->isHidden()) { vbodata += it->data[vbonum]; - ++it; } + + ++it; } glBindBuffer (GL_ARRAY_BUFFER, m_vbo[vbonum]);