[Refactoring] Moved gl feature activation into window class.