Also fixed a warning when instancing is used without lighting Former-commit-id: 5326e95f99a58ffcc91d7942ec2991482d7e58bd