kingBook

导航

Cocos Creator 安卓模拟器中无法运行

CocosCreator 3.8.3: 安卓模拟器(如:逍遥模拟器)中无法运行,修改以下文件:C:\ProgramData\cocos\editors\Creator\3.8.3\resources\resources\3d\engine\native\cocos\renderer\gfx-gles3\GLES3Commands.cpp 约1845行:

if (gpuFramebuffer->resolveFramebuffer.isActive()) {
    device->context()->makeCurrent(resolveFramebuffer.swapchain, framebuffer.swapchain);
} else {
    //device->context()->makeCurrent(framebuffer.swapchain);
    device->context()->makeCurrent(framebuffer.swapchain, framebuffer.swapchain);
}

posted on 2024-09-04 04:00  kingBook  阅读(21)  评论(0编辑  收藏  举报