We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 195720b commit f2ab921Copy full SHA for f2ab921
cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxActivity.java
@@ -301,7 +301,8 @@ public void init() {
301
public Cocos2dxGLSurfaceView onCreateView() {
302
Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
303
//this line is need on some device if we specify an alpha bits
304
- if(this.mGLContextAttrs[3] > 0) glSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT);
+ // FIXME: is it needed? And it will cause afterimage.
305
+ // if(this.mGLContextAttrs[3] > 0) glSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT);
306
307
// use custom EGLConfigureChooser
308
Cocos2dxEGLConfigChooser chooser = new Cocos2dxEGLConfigChooser(this.mGLContextAttrs);
0 commit comments