mesa: append fog instructions after parsing if a fog option is set