gl::info

Function supported_version_checked

source
pub fn supported_version_checked() -> Result<(u32, u32)>
Expand description

Gets the supported version of OpenGL as defined by the GL_MAJOR_VERSION and GL_MINOR_VERSION values returned from the current context.

This function always tests whether an error was returned from glGetError after.