GL ES 2.0 context ON OSX

Hi, i need to create GL ES 2.0 context on osx using angle. I specified
glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_EGL_CONTEXT_API);
glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API);
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
glfwInitHint(GLFW_ANGLE_PLATFORM_TYPE, GLFW_ANGLE_PLATFORM_TYPE_METAL);
to create window but when i use glGetString(GL_VERSION) it returns gl es 3.0 context version.

Hi @VladislavKhudziakov,

Welcome to the GLFW forum.

OpenGL ES 3.0 is backwards compatible with 2.0, and the context hints for OpenGL ES are not hard constraints, see the notes in GLFW: Window guide

So you should be able to go ahead and use this contect with the OpenGL ES 2.0 API.

Cheers,

Doug