majorMinor :: GettableStateVar String -> GettableStateVar (Int, Int)
OpenGL Graphics.Rendering.OpenGL.GL.StringQueries
A utility function to be used with e.g. glVersion or shadingLanguageVersion, transforming a variable containing a string of the form major.minor[optional rest] into a variable containing a numeric major/minor version. If the string is malformed, which should never happen with a sane OpenGL implementation, it is transformed to (-1,-1).