From 7e1ac0810216daa69dabe6022d35c6e9f07a2048 Mon Sep 17 00:00:00 2001 From: liujiake Date: Tue, 7 Jan 2025 16:24:20 +0800 Subject: [PATCH] =?UTF-8?q?OhosSurfaceGLSkia=E5=AF=B9=E8=B1=A1=E6=9E=90?= =?UTF-8?q?=E6=9E=84=E6=97=B6=E4=B8=8D=E5=86=8D=E8=A7=A3=E9=99=A4openGL?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=EF=BC=8C=E9=81=BF=E5=85=8D=E4=B8=BB=E7=BA=BF?= =?UTF-8?q?=E7=A8=8B=E7=BB=91=E5=AE=9A=E7=8A=B6=E6=80=81=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liujiake --- shell/platform/ohos/ohos_surface_gl_skia.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/shell/platform/ohos/ohos_surface_gl_skia.cpp b/shell/platform/ohos/ohos_surface_gl_skia.cpp index 6c8d5ea57e..87538db6e8 100755 --- a/shell/platform/ohos/ohos_surface_gl_skia.cpp +++ b/shell/platform/ohos/ohos_surface_gl_skia.cpp @@ -47,10 +47,7 @@ OhosSurfaceGLSkia::OhosSurfaceGLSkia( FML_LOG(INFO) << "OhosSurfaceGLSkia constructor end"; } -OhosSurfaceGLSkia::~OhosSurfaceGLSkia() { - eglMakeCurrent(eglGetCurrentDisplay(), EGL_NO_SURFACE, EGL_NO_SURFACE, - EGL_NO_CONTEXT); -} +OhosSurfaceGLSkia::~OhosSurfaceGLSkia() = default; void OhosSurfaceGLSkia::TeardownOnScreenContext() { // When the onscreen surface is destroyed, the context and the surface -- Gitee