From 96aec36a1f861fcd195c0cf6f57b592807af2114 Mon Sep 17 00:00:00 2001 From: liujiake Date: Thu, 26 Dec 2024 16:29:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=A4=E6=96=AD=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liujiake --- shell/platform/ohos/ohos_external_texture_gl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/platform/ohos/ohos_external_texture_gl.cpp b/shell/platform/ohos/ohos_external_texture_gl.cpp index 69b1a5646b..e8a941fe84 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; } -- Gitee