我在Ubuntu主机上运行Android Virtual Device.
它正在使用CPU / ABI Intel Atom(x86),而我正在使用主机GPU.
该仿真器正在使用Kernel-based Virtual Machine.
只要我使用OpenGL ES2上下文,它就可以出色地工作.
但是,如果我的应用尝试创建OpenGL ES3上下文,请使用…
const EGLint contextAttribs[] = {
EGL_CONTEXT_CLIENT_VERSION, 3,
EGL_NONE
};
context = eglCreateContext(display, config, NULL, contextAttribs);
…然后我得到一个EGL_BAD_CONFIG错误:
I/biplane ( 2839): EGL: vendor Android version 1.4 Android META-EGL
I/biplane ( 2839): EGL: client apis OpenGL_ES
I/biplane ( 2839): number of EGL configurations that match our preferred criteria: 1
I/biplane ( 2839): R8 G8 B8 A8 DEPTH24
E/EGL_emulation( 2839): tid 2852: eglCreateContext(919): err