Fix weirdly transparent TextureView

This commit is contained in:
SerpentSpirale 2022-03-25 13:40:26 +01:00 committed by Boulay Mathias
parent 1940833b99
commit 582b730289

View File

@ -163,6 +163,7 @@ public class MinecraftGLSurface extends View {
((ViewGroup)getParent()).addView(surfaceView);
}else{
TextureView textureView = new TextureView(getContext());
textureView.setOpaque(true);
mSurface = textureView;
textureView.setSurfaceTextureListener(new TextureView.SurfaceTextureListener() {