--- 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(); }