Skip to content

Commit 37580be

Browse files
committed
Revert "Transparent GLSurfaceView background"
This reverts commit 28f785a.
1 parent 6a7c30b commit 37580be

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

library/src/jp/co/cyberagent/android/gpuimage/GPUImageRenderer.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,8 @@ public GPUImageRenderer(final GPUImageFilter filter) {
9191

9292
@Override
9393
public void onSurfaceCreated(final GL10 unused, final EGLConfig config) {
94-
GLES20.glDisable(GL10.GL_DITHER);
95-
GLES20.glClearColor(0,0,0,0);
96-
GLES20.glEnable(GL10.GL_CULL_FACE);
97-
GLES20.glEnable(GL10.GL_DEPTH_TEST);
94+
GLES20.glClearColor(0, 0, 0, 1);
95+
GLES20.glDisable(GLES20.GL_DEPTH_TEST);
9896
mFilter.init();
9997
}
10098

library/src/jp/co/cyberagent/android/gpuimage/GPUImageView.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import android.graphics.Bitmap;
2121
import android.graphics.Color;
2222
import android.media.MediaScannerConnection;
23-
import android.graphics.PixelFormat;
2423
import android.net.Uri;
2524
import android.opengl.GLES20;
2625
import android.opengl.GLSurfaceView;
@@ -57,9 +56,6 @@ public GPUImageView(Context context, AttributeSet attrs) {
5756

5857
private void init(Context context, AttributeSet attrs) {
5958
mGLSurfaceView = new GPUImageGLSurfaceView(context, attrs);
60-
mGLSurfaceView.setZOrderOnTop(true);
61-
mGLSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 0);
62-
mGLSurfaceView.getHolder().setFormat(PixelFormat.TRANSPARENT);
6359
addView(mGLSurfaceView);
6460
mGPUImage = new GPUImage(getContext());
6561
mGPUImage.setGLSurfaceView(mGLSurfaceView);

0 commit comments

Comments
 (0)