From c31151e441c272ddf963c1fd7c3ae448dd42ec2f Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Sat, 24 Dec 2016 00:18:31 -0800 Subject: [PATCH] image.copyChannel fix on HTML5 GL --- lime/graphics/Image.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lime/graphics/Image.hx b/lime/graphics/Image.hx index 4b441b563..a60abcbf7 100644 --- a/lime/graphics/Image.hx +++ b/lime/graphics/Image.hx @@ -239,7 +239,6 @@ class Image { sourceRect = __clipRect (sourceRect); if (buffer == null || sourceRect == null) return; - if (destChannel == ALPHA && !transparent) return; if (sourceRect.width <= 0 || sourceRect.height <= 0) return; if (sourceRect.x + sourceRect.width > sourceImage.width) sourceRect.width = sourceImage.width - sourceRect.x; @@ -255,6 +254,7 @@ class Image { #if (js && html5) ImageCanvasUtil.convertToData (this); + ImageCanvasUtil.convertToData (sourceImage); #end ImageDataUtil.copyChannel (this, sourceImage, sourceRect, destPoint, sourceChannel, destChannel);