Fix HTML5 CopyPixels
Using copyPixels were resulting in Uncaught TypeError: Cannot read property 'clearRect' of null ImageCanvasUtil.hx:102 Adding this line fix the problem
This commit is contained in:
@@ -252,6 +252,7 @@ class Image {
|
|||||||
|
|
||||||
case CANVAS:
|
case CANVAS:
|
||||||
|
|
||||||
|
ImageCanvasUtil.convertToCanvas (this);
|
||||||
ImageCanvasUtil.copyPixels (this, sourceImage, sourceRect, destPoint, alphaImage, alphaPoint, mergeAlpha);
|
ImageCanvasUtil.copyPixels (this, sourceImage, sourceRect, destPoint, alphaImage, alphaPoint, mergeAlpha);
|
||||||
|
|
||||||
case DATA:
|
case DATA:
|
||||||
|
|||||||
Reference in New Issue
Block a user