Nicolas Cannasse преди 5 години
родител
ревизия
233d874dc9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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();
 	}