Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
Android: Specify RGBX_8888 pixel format
Browse files Browse the repository at this point in the history
  • Loading branch information
Flyinghead committed Aug 7, 2018
1 parent 6190c5e commit 958447f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ public void onSystemUiVisibilityChange(int visibility) {
// 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
Expand Down

0 comments on commit 958447f

Please sign in to comment.