Procházet zdrojové kódy

fixed resize on reload

Nicolas Cannasse před 5 roky
rodič
revize
233d874dc9
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

@@ -269,7 +269,7 @@ class Image extends Resource {
 		inf = null;
 		var s = getSize();
 		if( w != s.width || h != s.height )
-			tex.resize(w, h);
+			tex.resize(s.width, s.height);
 		tex.realloc = null;
 		loadTexture();
 	}