Update GL viewport on window resize.