Allow sheets to wrap an ITexture directly.

This commit is contained in:
Paul Chote
2013-06-07 17:55:11 +12:00
parent 22e6966c8e
commit 013ad0617e
4 changed files with 32 additions and 13 deletions

View File

@@ -55,6 +55,7 @@ namespace OpenRA.Graphics
{
var rect = Allocate(size);
Util.FastCopyIntoChannel(rect, src);
current.CommitData();
return rect;
}
@@ -103,7 +104,6 @@ namespace OpenRA.Graphics
}
var rect = new Sprite(current, new Rectangle(p, imageSize), channel);
current.MakeDirty();
p.X += imageSize.Width;
return rect;