fix AliPay gamePause Bug (#6167)

This commit is contained in:
ChiaNing
2020-02-13 17:49:01 +08:00
committed by GitHub
parent a83db4c8ad
commit c80e7942c0
+1 -1
View File
@@ -375,7 +375,7 @@ export class Game extends EventTarget {
}
// Because JSB platforms never actually stops the swap chain,
// we draw some more frames here to (try to) make sure swap chain consistency
if (CC_JSB || CC_RUNTIME_BASED) {
if (CC_JSB || CC_RUNTIME_BASED || CC_ALIPAY) {
let swapbuffers = 3;
const cb = () => {
if (--swapbuffers > 1) {