Hi All


I'm making an app that should be used with OpenGL ES 2.0. I have taken an example gles2 but modifying it has automatically changed to gles3. I need it to be gles2.
How do I force it to compile gles2? I use Qt5.7 but originally example is Qt4.8.

Qt Code:
  1. std::string glVersion = reinterpret_cast<const char*>(glGetString(GL_VERSION));
  2. std::string glslVer = reinterpret_cast<const char*>(glGetString(GL_SHADING_LANGUAGE_VERSION));
  3. qDebug("glVer: %s\nglslVer: %s", glVersion.c_str(), glslVer.c_str());
To copy to clipboard, switch view to plain text mode 


glVer: OpenGL ES 3.0 Mesa 12.0.6
glslVer: OpenGL ES GLSL ES 3.00

Thank you.