Skip to content

Commit

Permalink
Fix copyPixels crash on Hashlink
Browse files Browse the repository at this point in the history
  • Loading branch information
ACrazyTown committed Dec 11, 2024
1 parent 1b6a884 commit 0703202
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lime/_internal/graphics/ImageDataUtil.hx
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,13 @@ class ImageDataUtil
else
{
#if (lime_cffi && !disable_cffi && !macro)
#if hl
if (alphaPoint == null)
{
alphaPoint = new Vector2();
}
#end

if (CFFI.enabled) NativeCFFI.lime_image_data_util_copy_pixels(image, sourceImage, sourceRect, destPoint, alphaImage, alphaPoint, mergeAlpha);
else
#end
Expand Down

0 comments on commit 0703202

Please sign in to comment.