OGL: require GL version >= 3.0

This "fix" a crash because of glVertexAttribI only available on gl3+ contexts.