Skip to content

Commit 05a6775

Browse files
committed
use egl config with alpha channel
1 parent 7a0f582 commit 05a6775

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

android/src/main/java/io/getstream/webrtc/flutter/SurfaceTextureRenderer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public SurfaceTextureRenderer(String name) {
4040
}
4141

4242
public void init(final EglBase.Context sharedContext,
43-
RendererCommon.RendererEvents rendererEvents) {
44-
init(sharedContext, rendererEvents, EglBase.CONFIG_PLAIN, new GlRectDrawer());
43+
RendererCommon.RendererEvents rendererEvents) {
44+
init(sharedContext, rendererEvents, EglBase.CONFIG_RGBA, new GlRectDrawer());
4545
}
4646

4747
/**

android/src/main/java/io/getstream/webrtc/flutter/utils/EglUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ public class EglUtils {
1919
public static synchronized EglBase getRootEglBase() {
2020
if (rootEglBase == null) {
2121
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP)
22-
rootEglBase = EglBase.createEgl10(EglBase.CONFIG_PLAIN);
22+
rootEglBase = EglBase.createEgl10(EglBase.CONFIG_RGBA);
2323
else
24-
rootEglBase = EglBase.create();
24+
rootEglBase = EglBase.create(null, EglBase.CONFIG_RGBA);
2525
}
2626

2727
return rootEglBase;

0 commit comments

Comments
 (0)