When all clips are optimized away,  we may still need a clip mask when
some of those clips were in a different coordinate system. This change
ensures that this information is used to properly apply global clip
masks for segmented primitives with this kind of clipping situation.

Fixes #2294.