Remove call to glViewport in X11 implementation