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

来源:互联网 发布:数字媒体技术软件 编辑:程序博客网 时间:2024/05/16 00:47
  1. package org.cocos2dx.cpp;  
  2.   
  3. import org.cocos2dx.lib.Cocos2dxActivity;  
  4. import org.cocos2dx.lib.Cocos2dxGLSurfaceView;  
  5.   
  6. public class AppActivity extends Cocos2dxActivity {  
  7.      public Cocos2dxGLSurfaceView onCreateView() {    
  8.             Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);    
  9.             glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8); // this line is required for clipping    
  10.         
  11.             return glSurfaceView;  
  12.         }    
0 0