Skip to content

Commit 08eb9a4

Browse files
committed
Fix _resetPointers state
1 parent 53c59a5 commit 08eb9a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: cocos2d/core/sprites/CCSpriteWebGLRenderCmd.js

+1
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@
549549
gl.vertexAttribPointer(cc.VERTEX_ATTRIB_POSITION, 3, gl.FLOAT, false, 24, 0);
550550
gl.vertexAttribPointer(cc.VERTEX_ATTRIB_COLOR, 4, gl.UNSIGNED_BYTE, true, 24, 12);
551551
gl.vertexAttribPointer(cc.VERTEX_ATTRIB_TEX_COORDS, 2, gl.FLOAT, false, 24, 16);
552+
_resetPointers = false;
552553
}
553554
gl.drawArrays(gl.TRIANGLE_STRIP, this._bufferOffset / (this.vertexBytesPerUnit/4), 4);
554555
}

0 commit comments

Comments
 (0)