Android 如何使用EGL扩展创建具有P3颜色空间的曲面

Android 如何使用EGL扩展创建具有P3颜色空间的曲面,android,opengl-es,egl,Android,Opengl Es,Egl,我想使用EGL创建一个具有宽色域(如P3)的曲面,我阅读了以下指南。 下面是我用native编写的代码,用于创建具有P3的曲面 std::vector<EGLint> attributes; attributes.push_back(EGL_GL_COLORSPACE_KHR); attributes.push_back(EGL_GL_COLORSPACE_DISPLAY_P3_EXT); attributes.push_back(EGL_NONE); surface_ = egl

我想使用EGL创建一个具有宽色域(如P3)的曲面,我阅读了以下指南。

下面是我用native编写的代码,用于创建具有P3的曲面

std::vector<EGLint> attributes;
attributes.push_back(EGL_GL_COLORSPACE_KHR);
attributes.push_back(EGL_GL_COLORSPACE_DISPLAY_P3_EXT);
attributes.push_back(EGL_NONE);
surface_ = eglCreateWindowSurface(display, config, window, attributes.data());
我认为不同的是EGL版本,Android 9使用EGL1.4,当Android 10使用EGL 1.5时。问题是如何在Android 10下创建具有宽颜色空间的EGL曲面

2020-03-04 19:11:05.547 1146-1275/com.example.widecolor E/libEGL: processAttributes:604 error 3009 (EGL_BAD_MATCH)
2020-03-04 19:11:05.547 1146-1275/com.example.widecolor E/libEGL: error invalid colorspace: 13155