Revert "Android EGL config: Always require 8888, stencil if version >= ICS"

This reverts commit 015c314fb1.

Helps #11922
This commit is contained in:
Henrik Rydgård 2020-01-18 18:43:29 +01:00
parent 7db5471d80
commit dd1de41db7

View File

@ -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);