From fa9180f06b289235bd95fb7cf81bd292f61b09a9 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Mon, 11 Nov 2024 14:49:24 -0500 Subject: [PATCH] Fix a bug where GPU-only bitmaps are reported as invalid. --- src/openfl/utils/Assets.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openfl/utils/Assets.hx b/src/openfl/utils/Assets.hx index 355556cd4f..be0c20d290 100644 --- a/src/openfl/utils/Assets.hx +++ b/src/openfl/utils/Assets.hx @@ -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;