src/glCompiler.cc

changeset 920
147497785496
parent 890
903ec1e46298
child 927
409b82a4765e
child 943
af81220741d9
--- a/src/glCompiler.cc	Wed Nov 05 23:41:58 2014 +0200
+++ b/src/glCompiler.cc	Mon Dec 01 05:10:22 2014 +0200
@@ -262,8 +262,13 @@
 {
 	RemoveDuplicates (m_staged);
 
-	for (LDObjectPtr obj : m_staged)
-		compileObject (obj);
+	for (auto it = m_staged.begin(); it != m_staged.end(); ++it)
+	{
+		if (*it == null)
+			continue;
+
+		compileObject (*it);
+	}
 
 	m_staged.clear();
 }

mercurial