Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于解决 安卓手机 文本帖图丢失的 方法. #225

Open
finscn opened this issue Feb 20, 2021 · 0 comments
Open

关于解决 安卓手机 文本帖图丢失的 方法. #225

finscn opened this issue Feb 20, 2021 · 0 comments

Comments

@finscn
Copy link
Contributor

finscn commented Feb 20, 2021

经过和 微信团队沟通, 最新解决方案是:


cc.game.on(cc.game.EVENT_HIDE, function () {
    const gl = cc.game._renderContext;
    if (gl && gl.finish) {
        gl.finish();
    }
    if (gl && gl.submit) {
        gl.submit();
    }
});

cc.game.on(cc.game.EVENT_SHOW, function () {
    const gl = cc.game._renderContext;
    if (gl && gl.finish) {
        gl.finish();
    }
    if (gl && gl.submit) {
        gl.submit();
    }
});

这个 submit 是微信专有的. 加上这个就好了. (finish那个也要有)
建议整合到 adapter里.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant