image.copyPixels fixes

This commit is contained in:
Joshua Granick
2019-07-26 15:39:52 -07:00
parent 44e111528c
commit c8120c20d5
3 changed files with 8 additions and 2 deletions

View File

@@ -131,7 +131,7 @@ namespace lime {
int destBytesPerPixel = image->buffer->bitsPerPixel / 8;
bool useAlphaImage = (alphaImage && alphaImage->buffer->transparent);
bool blend = (mergeAlpha || (useAlphaImage && !image->buffer->transparent));
bool blend = (mergeAlpha || (useAlphaImage && !image->buffer->transparent) || (!mergeAlpha && !image->buffer->transparent && sourceImage->buffer->transparent));
if (!useAlphaImage) {