Merge pull request #997 from 2youyou2/graphics

fixed graphics canvas commands
This commit is contained in:
Jare Guo
2016-08-01 20:39:32 +08:00
committed by GitHub
+2 -1
View File
@@ -70,7 +70,8 @@ _p.rendering = function (ctx, scaleX, scaleY) {
if (ctxCmd === 'clear') {
cmds.splice(0, i+1);
i = 0;
return;
l = cmds.length;
continue;
}
else if (ctxCmd === 'moveTo' && endPath) {
context.beginPath();