From 07f97fefdbfa4d0e249d8c588c4edf64cdd84318 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Fri, 31 May 2024 18:01:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=8D=E4=BD=8E=E5=A3=B0=E7=BD=91SDK?= =?UTF-8?q?=E7=89=88=E6=9C=AC=EF=BC=8C=E5=A4=84=E7=90=86=E9=9B=B7=E7=94=B5?= =?UTF-8?q?=E6=A8=A1=E6=8B=9F=E5=99=A8=E9=97=AA=E9=80=80=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 4 ++-- .../agora/beautyapi/faceunity/utils/egl/GLFrameBuffer.java | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index fbf0b6204..a388b398e 100644 --- a/build.gradle +++ b/build.gradle @@ -55,7 +55,7 @@ task clean(type: Delete) { ext { IS_PUBLISH_LOCAL=true LIB_VERSION="1.0.6" -// AGORA_RTC_SDK="io.agora.rtc:agora-special-full:4.1.1.28" + AGORA_RTC_SDK= 'io.agora.rtc:agora-special-full:4.1.1.28' // AGORA_RTC_SDK= "${rootProject.rootDir.absolutePath}/sdk" - AGORA_RTC_SDK="io.agora.rtc:full-sdk:4.2.6" +// AGORA_RTC_SDK="io.agora.rtc:full-sdk:4.2.6" } diff --git a/lib_faceunity/src/main/java/io/agora/beautyapi/faceunity/utils/egl/GLFrameBuffer.java b/lib_faceunity/src/main/java/io/agora/beautyapi/faceunity/utils/egl/GLFrameBuffer.java index e7588a7e6..ff8495f5a 100644 --- a/lib_faceunity/src/main/java/io/agora/beautyapi/faceunity/utils/egl/GLFrameBuffer.java +++ b/lib_faceunity/src/main/java/io/agora/beautyapi/faceunity/utils/egl/GLFrameBuffer.java @@ -115,9 +115,10 @@ public class GLFrameBuffer { synchronized (EglBase.lock){ if(textureType == GLES11Ext.GL_TEXTURE_EXTERNAL_OES){ - drawer.drawOes(textureId, matrix, mWidth, mHeight, 0, 0, mWidth, mHeight); + drawer.drawOes(textureId,0, matrix, mWidth, mHeight, 0, 0, mWidth, mHeight); + }else{ - drawer.drawRgb(textureId, matrix, mWidth, mHeight, 0, 0, mWidth, mHeight); + drawer.drawRgb(textureId,0, matrix, mWidth, mHeight, 0, 0, mWidth, mHeight); } }