"called unimplemented OpenGL ES API" reported by using QCOM Foveation extension

Hi, I’m just getting stated EGL.

I’m using that contains symbol “glFramebufferFoveationParametersQCOM”, but libEGL report

called unimplemented OpenGL ES API  

My egl version is 1.5 and opengl es’s version is 3.2.

What should I do for that?

glFramebufferFoveationParametersQCOM() is not a OpenGL ES core function. But rather an OpenGL ES extension function, defined in this extension:

Before trying to make use of this function, you need to verify that the GL context you’ve created provides QCOM_framebuffer_foveated extension support first. If it doesn’t, you should not query for any function pointers defined in that extension, much less try to call them.

The simplest option for that is:

  unsigned char *extensions = glGetString( GL_EXTENSIONS );
  bool           found      = ( strstr( extensions, "QCOM_framebuffer_foveated" ) != NULL );

Though you could instead use a loop over each extension to do the same:

   GLint n, i;
   bool found = false;

   glGetIntegerv( GL_NUM_EXTENSIONS, &n );
   for ( GLint i = 0; i < n && !found; i++ )
      unsigned char *ext = glGetStringi( GL_EXTENSIONS, i );
      found = ( strstr( extensions, "QCOM_framebuffer_foveated" ) != NULL );

To your possible next question:

  • Why does my contain the function symbol glFramebufferFoveationParametersQCOM if calling it fails?

For a GL-ES extension to be supported in an application requires appropriate: 1) GPU hardware, 2) CPU graphics drivers (including EGL/GL-ES libraries), and 3) GL-ES context support. So it could be your GPU doesn’t support the extension. Or that your graphics drivers/libraries are too old or misinstalled. Or the GL-ES context you’ve created doesn’t properly support the minimum GL-ES version required for the extension you’ve tried to use.

For the latter, QCOM_framebuffer_foveated says it requires:

So if you haven’t properly created an OpenGL ES 2.0 (or later) capable context, then the graphics driver will probably disable use of that extension in your context. For other tips on dealing with called unimplemented OpenGL ES API errors on Android, search stackoverflow:


  • “called unimplemented OpenGL ES API”

For example (relates to setEGLContextClientVersion()):

More on that here: