cocos2dx3.2 某些UI白屏或使用ClippingNode造成部分手机白屏

android项目里,修改AppActivity类
package org.cocos2dx.cpp;

import org.cocos2dx.lib.Cocos2dxActivity;
import org.cocos2dx.lib.Cocos2dxGLSurfaceView;

public class AppActivity extends Cocos2dxActivity {
	 public Cocos2dxGLSurfaceView onCreateView() {  
	        Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);  
	        glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8); // this line is required for clipping  
	  
	        return glSurfaceView;
	    }  
}

你可能感兴趣的:(cocos2dx3.2 某些UI白屏或使用ClippingNode造成部分手机白屏)