From 4e2212de407cafb175091fce0e236dfaaa9d4226 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sat, 7 Dec 2013 15:20:11 +0100 Subject: [PATCH] Skip the EGLConfigChooser. Seems to choose a suboptimal mode on several phones. We just have to live with no stencil in non-buffered. Play buffered. --- android/src/com/henrikrydgard/libnative/NativeActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/com/henrikrydgard/libnative/NativeActivity.java b/android/src/com/henrikrydgard/libnative/NativeActivity.java index 82f0b80983..20378840ac 100644 --- a/android/src/com/henrikrydgard/libnative/NativeActivity.java +++ b/android/src/com/henrikrydgard/libnative/NativeActivity.java @@ -311,9 +311,9 @@ public class NativeActivity extends Activity { // if we specify that we want destination alpha in the config chooser, which we do. // http://grokbase.com/t/gg/android-developers/11bj40jm4w/fall-back - mGLSurfaceView.getHolder().setFormat(PixelFormat.RGBX_8888); + // mGLSurfaceView.getHolder().setFormat(PixelFormat.RGBX_8888); - mGLSurfaceView.setEGLConfigChooser(new NativeEGLConfigChooser()); + // mGLSurfaceView.setEGLConfigChooser(new NativeEGLConfigChooser()); nativeRenderer = new NativeRenderer(this); mGLSurfaceView.setRenderer(nativeRenderer);