瀏覽代碼

Update Util.cs

Remove unneeded casts.
BigRedPK 12 年之前
父節點
當前提交
877fc97d21
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-xna/src/Util.cs

+ 1 - 1
spine-xna/src/Util.cs

@@ -80,7 +80,7 @@ namespace Spine {
       			// So instead of using this directly, we create a non-voliate Texture2D.
       			// So instead of using this directly, we create a non-voliate Texture2D.
       			// This is computationally slower, but should be safe as long as it is done
       			// This is computationally slower, but should be safe as long as it is done
       			// on load.
       			// on load.
-      			Texture2D resultTexture = new Texture2D(device, (int)file.Width, (int)file.Height);
+      			Texture2D resultTexture = new Texture2D(device, file.Width, file.Height);
       			Color[] resultContent = new Color[Convert.ToInt32(file.Width * file.Height)];
       			Color[] resultContent = new Color[Convert.ToInt32(file.Width * file.Height)];
       			result.GetData(resultContent);
       			result.GetData(resultContent);
       			resultTexture.SetData(resultContent);
       			resultTexture.SetData(resultContent);