Skip to content

Commit 41e2365

Browse files
committed
Fix important issue in auto batch v5
1 parent 4c0cae6 commit 41e2365

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cocos2d/core/renderer/RendererWebGL.js

+4
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,8 @@ return {
397397
for (; i < end; ++i) {
398398
_prevRenderCmds[i]._vBuffer = null;
399399
}
400+
// keeping i correct, it should run through all elements
401+
i--;
400402
continue;
401403
}
402404
}
@@ -417,6 +419,8 @@ return {
417419
for (; i < end; ++i) {
418420
_prevRenderCmds[i]._vBuffer = newBuf;
419421
}
422+
// keeping i correct, it should run through all elements
423+
i--;
420424
}
421425
}
422426
}

0 commit comments

Comments
 (0)