OGL: require GL version >= 3.0

This "fix" a crash because of glVertexAttribI only available on gl3+ contexts.
Maybe add the reason GL3 is needed to the error message as well.