I have built my iOS app using OpenGLES 3. Now I want it to support older devices with OpenGLES 2. I have inited context as ES 2 and all is working. However, my app is using ES 3 headers, so some functions are present in them.
ES 3 -> glBindVertexArray
ES 2 -> glBindVertexArrayOES
if (version == 2) glBindVertexArrayOES(0)
I have tested that by building app against OpenGLES 3 headers and using
is working even if the context is set to ES 2 on older devices.