«

安卓白屏问题

时间:2024-3-2 18:21     作者:韩俊     分类: Android


找到

frameworksruntime-srcproj.androidsrcorgcocos2dxluaAppActivity.java 文件

package org.cocos2dx.lua;

import org.cocos2dx.lib.Cocos2dxActivity;
import org.cocos2dx.lib.Cocos2dxGLSurfaceView;//修正白屏

public class AppActivity extends Cocos2dxActivity {
    //修正白屏
    public Cocos2dxGLSurfaceView onCreateView() {
        Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
        // TestCpp should create stencil buffer
        glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8);

        return glSurfaceView;
    }
}


标签: android

热门推荐