diff --git a/shell/platform/ohos/ohos_external_texture_gl.cpp b/shell/platform/ohos/ohos_external_texture_gl.cpp index 69b1a5646bb35fb5578898cd7dcfacefe04f79fd..e8a941fe8408f598edb05336c12b27517cd8530a 100755 --- a/shell/platform/ohos/ohos_external_texture_gl.cpp +++ b/shell/platform/ohos/ohos_external_texture_gl.cpp @@ -334,7 +334,7 @@ void OHOSExternalTextureGL::Hide() } if (nativeImage_ != nullptr) { OH_NativeImage_DetachContext(nativeImage_); - if (backGroundTextureName_ != 0) { + if (texture_name_ != 0) { glDeleteTextures(1, &texture_name_); texture_name_ = 0; }