Fixed bug with GL viewport initializing from an inactive tab
Fixed bug with GL viewport initializing from an inactive tab