Prevented infinite loop that can occur when there are GL driver problems