Don't update apply glViewport every frame.

closes #1661