OpenGL ES 3.1 support (Android L developer preview)

2.7k Views Asked by At

I installed Android L developer preview image on Nexus 5 yesterday in hopes to start implementing compute shaders. The code I expected to give me GLES31 capable OpenGL context is;

GLSurfaceView glView = new GLSurfaceView(context);
glView.setEGLContextClientVersion(3);
...

The exact same code which creates OpenGL ES 3.0 context on Android 4.4.4.

But instead I am getting OpenGL ES 3.0 context without the new GLES31 capabilities.

Am I missing something fundamental in regard to OpenGL context creation - or is it the case OpenGL ES 3.1 is not supported on current Android L developer preview image (= LPV79)?

1

There are 1 best solutions below

4
keaukraine On BEST ANSWER

Are you absolutely sure that Nexus5 hardware does support OpenGL ES 3.1?

AFAIK Adreno 330 supports only ES 3.0, and ES 3.1 is introduced in Adreno 420 GPU.