Fixes invalid clipping when both scaling and clipping are applied to the graphics context