浏览代码

fixed resize on reload

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();
 	}