Refactor start-up check for OpenGL