Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【咨询】Android音视频关于OpenGL ES环境释放问题 #17

Open
littledou opened this issue Apr 26, 2021 · 0 comments
Open

【咨询】Android音视频关于OpenGL ES环境释放问题 #17

littledou opened this issue Apr 26, 2021 · 0 comments

Comments

@littledou
Copy link

hi,
阅读了【Android 音视频开发打怪升级】系列文章,对Activity的onDestory方法中会对dawer进行释放,会报如下错误

libEGL: call to OpenGL ES API with no current context (logged once per thread)

根据释义,调用OpenGL ES API的位置没有EGL的上下文对象,GLSurfaceView内部GLThread定义的EGL上下文对象。而onDestory位于主线程,是没有EGL上下文对象的,所才会报这个错。

然而,究竟应该在什么位置对申请的显存进行释放呢,包括shader、program、texture等?
不知道描述是否清晰,还望解答下疑问

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant