src/glCompiler.cc

branch
experimental
changeset 908
3b0b2b1738e9
parent 907
cf150959ccc4
--- a/src/glCompiler.cc	Wed Nov 05 03:49:29 2014 +0200
+++ b/src/glCompiler.cc	Wed Nov 05 17:48:11 2014 +0200
@@ -283,10 +283,14 @@
 		{
 			it = m_objectInfo.erase (it);
 		}
-		elif (it.key().toStrongRef()->document() == CurrentDocument()
-			and not it.key().toStrongRef()->isHidden())
+		else
 		{
-			vbodata += it->data[vbonum];
+			if (it.key().toStrongRef()->document() == CurrentDocument()
+				and not it.key().toStrongRef()->isHidden())
+			{
+				vbodata += it->data[vbonum];
+			}
+
 			++it;
 		}
 	}

mercurial