From dd1de41db7bbd8eaeda5f696127ccededa375d5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 18 Jan 2020 18:43:29 +0100 Subject: [PATCH] Revert "Android EGL config: Always require 8888, stencil if version >= ICS" This reverts commit 015c314fb18fe002b74a161a75c3e71e296117e8. Helps #11922 --- android/src/org/ppsspp/ppsspp/NativeActivity.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/android/src/org/ppsspp/ppsspp/NativeActivity.java b/android/src/org/ppsspp/ppsspp/NativeActivity.java index 251a0f5ddc..480b06bb9c 100644 --- a/android/src/org/ppsspp/ppsspp/NativeActivity.java +++ b/android/src/org/ppsspp/ppsspp/NativeActivity.java @@ -557,10 +557,13 @@ public abstract class NativeActivity extends Activity implements SurfaceHolder.C mGLSurfaceView.setEGLConfigChooser(new NativeEGLConfigChooser()); } else { // Tried to mess around with config choosers (NativeEGLConfigChooser) here but fail completely on Xperia Play. - // On the other hand, I think from ICS we should be safe to at least require 8888 and stencil... - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH && !Build.MANUFACTURER.equals("Amazon")) { - mGLSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 8); - } + + // Then I tried to require 8888/16/8 but that backfired too, does not work on Mali 450 which is + // used in popular TVs and boxes like Mi Box. So we'll just get what we get, I guess... + + // if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH && !Build.MANUFACTURER.equals("Amazon")) { + // mGLSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 8); + // } } mGLSurfaceView.setRenderer(nativeRenderer); setContentView(mGLSurfaceView);