check swrast->_FogEnabled instead of ctx->Fog.Enabled