Swap viewports method