Procházet zdrojové kódy

Fix null access when tex has async flag but async loader is null

Yuxiao Mao před 1 rokem
rodič
revize
0737dec186
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      hxd/res/Image.hx

+ 1 - 1
hxd/res/Image.hx

@@ -559,7 +559,7 @@ class Image extends Resource {
 		}
 
 		function load() {
-			if ((enableAsyncLoading || tex.flags.has(AsyncLoading)) && asyncData == null && ASYNC_LOADER.isSupported(this))
+			if ((enableAsyncLoading || tex.flags.has(AsyncLoading)) && asyncData == null && ASYNC_LOADER != null && ASYNC_LOADER.isSupported(this))
 				@:privateAccess {
 				tex.dispose();
 				tex.format = RGBA;