2
0
Эх сурвалжийг харах

Lazy loading of Textures from Images.

clementlandrin 1 жил өмнө
parent
commit
8b4b433fdc
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      hxd/res/Image.hx

+ 1 - 1
hxd/res/Image.hx

@@ -624,7 +624,7 @@ class Image extends Resource {
 		if( DEFAULT_FILTER != Linear ) tex.filter = DEFAULT_FILTER;
 		tex.setName(entry.path);
 		setupTextureFlags(tex);
-		loadTexture();
+		tex.realloc = () -> loadTexture();
 		return tex;
 	}