Explorar o código

fixed resize on reload

Nicolas Cannasse %!s(int64=5) %!d(string=hai) anos
pai
achega
233d874dc9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
 	}