Skip to content

Commit

Permalink
Fix a bug where GPU-only bitmaps are reported as invalid.
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteMasterEric committed Nov 11, 2024
1 parent 7661264 commit fa9180f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/openfl/utils/Assets.hx
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,8 @@ class Assets
return false;
}
#else
return (bitmapData != null && #if !lime_hybrid bitmapData.image != null #else bitmapData.__handle != null #end);
return (bitmapData != null
&& #if !lime_hybrid (bitmapData.image != null || bitmapData.__texture != null) #else bitmapData.__handle != null #end);
#end
#else
return true;
Expand Down

0 comments on commit fa9180f

Please sign in to comment.