Issue with fog

That’s the correct way to set fog, and in fact it works fine for me. Perhaps it’s an issue with your graphics card or the driver you have installed?

David