OGL: require GL version >= 3.0

This "fix" a crash because of glVertexAttribI only available on gl3+ contexts.
Merge pull request #1595 from degasus/master

OGL: require GL version >= 3.0