xeogl
xeogl copied to clipboard
I find a bug in canvas2image.js
When I use scene.canvas.getSnapshot
, The img's height is incorrect, and I find line 154 have 2 iwidth in canvas2image.js, It's should be oSaveCtx.drawImage(oCanvas, 0, 0, oCanvas.width, oCanvas.height, 0, 0, iWidth, iHeight);
Thanks! If you like, please make a PR and then I'll merge. This bug has actually been affecting users, so it's great that you found this.
ok, I will make a PR soon.