Removed now-unused ITexture.SetData() overload

This commit is contained in:
penev92
2021-08-03 00:51:35 +03:00
committed by Matthias Mailänder
parent cb8530fbae
commit 6f0509d235
3 changed files with 0 additions and 27 deletions

View File

@@ -92,24 +92,6 @@ namespace OpenRA.Platforms.Default
}
}
// An array of RGBA
public void SetData(uint[,] colors)
{
VerifyThreadAffinity();
var width = colors.GetUpperBound(1) + 1;
var height = colors.GetUpperBound(0) + 1;
if (!Exts.IsPowerOf2(width) || !Exts.IsPowerOf2(height))
throw new InvalidDataException($"Non-power-of-two array {width}x{height}");
Size = new Size(width, height);
unsafe
{
fixed (uint* ptr = &colors[0, 0])
SetData(new IntPtr(ptr), width, height);
}
}
public void SetFloatData(float[] data, int width, int height)
{
VerifyThreadAffinity();