Android: GLES20: Called unimplemented OpenGL ES API

前端 未结 3 2019
天涯浪人
天涯浪人 2020-11-27 19:49

I am getting a \"Called unimplemented OpenGL ES API\" error, when trying the GLES20 Sample, provided by developer.android.com. I modified the sample, though. The reason was

相关标签:
3条回答
  • 2020-11-27 19:59

    It may be because you are using the GL10 instance we are getting as a parameter in onSurfaceCreated(), onSurfaceChanged() and onDrawFrame() in your Renderer implementation. Since you intend to use OpenGL ES 2.0, we can and probably not use the instance and use an alternative instead. There are alternatives! This is the reason we see those parameters names and unused or similar in codes across the net!

    0 讨论(0)
  • 2020-11-27 20:00

    See this post - triangle opengl in android

    As mentioned there, the emulators do not support GL2, but as that post mentions, it worked for me on an actual device.

    0 讨论(0)
  • 2020-11-27 20:09

    This is not an error, but a statement. It simply tells you that your target doesn't support OpenGL ES version 2.0.

    0 讨论(0)
提交回复
热议问题