Fixed bug with GL viewport initializing from an inactive tab