Avoided GL contexts being destroyed when a window is minimised.