Avoid hanging if glGetIntegerv() fails.