mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
delete opengl texture when it detatch from surfacetexture. (flutter/engine#18733)
This commit is contained in:
parent
01177fdd4d
commit
85f1cd7356
@ -82,6 +82,7 @@ void AndroidExternalTextureGL::UpdateTransform() {
|
||||
void AndroidExternalTextureGL::OnGrContextDestroyed() {
|
||||
if (state_ == AttachmentState::attached) {
|
||||
Detach();
|
||||
glDeleteTextures(1, &texture_name_);
|
||||
}
|
||||
state_ = AttachmentState::detached;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user