可以在论坛看到, 修改一处即可.
文件位置在: frameworks\cocos2d-x\cocos\platform\android\java\src\org\cocos2dx\lib\Cocos2dxActivity.java
然后找到 public Cocos2dxGLSurfaceView onCreateView() 函数.
修改如下:
1 public Cocos2dxGLSurfaceView onCreateView() { 2 3 Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this); 4 5 glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8); 6 7 return glSurfaceView; 8 9 }
时间: 2024-10-28 10:42:55