Android OpenGL ES 2.0 Framebuffers - Called unimplemented OpenGL ES API
I ran my OpenGL ES 2.0 sample app (which runs on fine on iOS devices) on HTC Desire HD (2.3.3), and I'm getting tons of the following messages in LogCat.
Called unimplemented OpenGL ES API
The error is even generated when I use glBindFramebuffer
. I used glBindFramebufferOES
in OpenGL ES 1.0, and it worked fine. As far as I know Framebuffers are included as a n开发者_运维知识库on-extension in OpenGL ES 2.0.
Why am I getting this error? It is stated that my device has an OpenGL ES 2.0 driver. Is this a device specific bug?
I had the same problem and this answer helped:
Android: GLES20: Called unimplemented OpenGL ES API
Basically, the AndroidManifest.xml and Java wrapping code both have to indicate that OpenGLES 2.0 is desired.
Call setEGLContextClientVersion(2); on your GLSurfaceView class in your activity, and this should work.
精彩评论