Skip to content

Commit ad26a05

Browse files
committed
fix: blend mode
1 parent 69fb8b7 commit ad26a05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

epf/src/main/java/com/daasuu/epf/EPlayerRenderer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void run() {
7777

7878
@Override
7979
public void onSurfaceCreated(final EGLConfig config) {
80-
GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
80+
GLES20.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
8181

8282
final int[] args = new int[1];
8383

@@ -136,6 +136,8 @@ public void onSurfaceChanged(final int width, final int height) {
136136

137137
@Override
138138
public void onDrawFrame(final EFramebufferObject fbo) {
139+
GLES20.glEnable(GLES20.GL_BLEND);
140+
GLES20.glBlendFunc(GLES20.GL_SRC_ALPHA, GLES20.GL_ONE_MINUS_SRC_ALPHA);
139141

140142
synchronized (this) {
141143
if (updateSurface) {

0 commit comments

Comments
 (0)