xeogl icon indicating copy to clipboard operation
xeogl copied to clipboard

I find a bug in canvas2image.js

Open jacklincao opened this issue 6 years ago • 2 comments

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);

jacklincao avatar Dec 06 '18 03:12 jacklincao

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.

xeolabs avatar Dec 06 '18 08:12 xeolabs

ok, I will make a PR soon.

jacklincao avatar Dec 06 '18 09:12 jacklincao