opengl: fix OpenGL CoreProfile compatibility
TexEnv and TEXTURE PRIORITY are in deprecation list in OpenGL 3.0 and in removed features list since OpenGL 3.1. Calling VertexAttribPointer when no vertex array object is bound is also deprecated (removed) since OpenGL 3.0 (3.1).
Theses features are now part of the Open Compatibilty profile (or ARB_compatibility), if a user provide an OpenGL Core profile context to libvlc theses operations will fail.
Vertex array functions where introduced in OpenGLES 3.0 so I kept them as optional