How to properly initialize and terminate EGL on Android

前端 未结 1 409
一向
一向 2021-02-01 23:46

While there are many samples around about using OpenGL ES on Android all of them seems to be incorrect (even ones come with Android SDK/NDK) in respect to initialization/termina

相关标签:
1条回答
  • 2021-02-02 00:39

    eglTerminate() and eglInitialize() are reference counted so it's okay for each "component" to invoke them. On Android 3.0 in particular, it is very common to have several OpenGL contexts in the same app, and there is no problem whatsoever with EGL.

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