renderer: check for entity.texture to avoid NPE