Merge pull request #6348 from stenzek/fog BPMemory: Handle fog configuration where both A and C are infinity/NaN