mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
Android EGL config: Always require 8888, stencil if version >= ICS
This commit is contained in:
1 parent
c8f86def97
commit
015c314fb1
1 file changed
+6
-1
@@ -517,8 +517,13 @@ public abstract class NativeActivity extends Activity implements SurfaceHolder.C
|
||||
if (Build.MANUFACTURER == "OUYA") {
|
||||
mGLSurfaceView.getHolder().setFormat(PixelFormat.RGBX_8888);
|
||||
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) {
|
||||
mGLSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 8);
|
||||
}
|
||||
}
|
||||
// Tried to mess around with config choosers here but fail completely on Xperia Play.
|
||||
mGLSurfaceView.setRenderer(nativeRenderer);
|
||||
setContentView(mGLSurfaceView);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user