@@ -56,7 +56,8 @@ class Renderer extends hxd.impl.AnyProps {
p.dispose();
for( f in effects )
f.dispose();
- ctx.lightSystem.dispose();
+ if ( ctx.lightSystem != null )
+ ctx.lightSystem.dispose();
passObjects = new Map();
}