Give a better error if no enum value was given
Provide glGetError, and check our errors where possible