mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Update Util.cs
Remove unneeded casts.
This commit is contained in:
parent
2837adaf9d
commit
877fc97d21
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user