fixed viewport corruption by GLframe. this is worth investigating further.