Make sure texture units have a reference to their parent MaterialPass
Garbage collect textures