Skip to content

Commit 7dea348

Browse files
committed
Fix vertex attribute pointer not updated issue
1 parent 7241450 commit 7dea348

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cocos2d/core/renderer/RendererWebGL.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,9 @@ return {
684684
this._refreshVirtualBuffers();
685685
}
686686

687+
// Reset buffer for rendering
688+
context.bindBuffer(gl.ARRAY_BUFFER, null);
689+
687690
for (i = 0, len = locCmds.length; i < len; ++i) {
688691
cmd = locCmds[i];
689692
next = locCmds[i+1];

0 commit comments

Comments
 (0)