Android: Specify RGBX_8888 pixel format

This commit is contained in:
Flyinghead 2018-08-07 11:55:32 +02:00
parent 6190c5e341
commit 958447f12d
1 changed files with 3 additions and 0 deletions

View File

@ -194,6 +194,9 @@ public class GL2JNIView extends GLSurfaceView
// See ContextFactory class definition below
setEGLContextFactory(new GLCFactory.ContextFactory());
if (!translucent)
this.getHolder().setFormat(PixelFormat.RGBX_8888);
// We need to choose an EGLConfig that matches the format of
// our surface exactly. This is going to be done in our
// custom config chooser. See ConfigChooser class definition