未验证 提交 555d492a 编写于 作者: K kaisa695275735 提交者: GitHub

delete opengl texture when it detatch from surfacetexture. (#18733)

上级 58edbd42
......@@ -82,6 +82,7 @@ void AndroidExternalTextureGL::UpdateTransform() {
void AndroidExternalTextureGL::OnGrContextDestroyed() {
if (state_ == AttachmentState::attached) {
Detach();
glDeleteTextures(1, &texture_name_);
}
state_ = AttachmentState::detached;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册