reduces duplication; textures get put in hardware on demand now.

git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1187 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
chrisf
2007-07-13 02:06:38 +00:00
parent ee52ca58f1
commit 2a076b34bf
5 changed files with 23 additions and 23 deletions

View File

@@ -20,7 +20,7 @@ namespace OpenRa.Game
Provider<Sheet> sheetProvider = delegate
{
Sheet sheet = new Sheet(new Bitmap(pageSize.Width, pageSize.Height));
Sheet sheet = new Sheet(new Bitmap(pageSize.Width, pageSize.Height), device);
sheets.Add(sheet);
return sheet;
};
@@ -42,9 +42,6 @@ namespace OpenRa.Game
trees.Add(r.Image, rect);
}
foreach (Sheet sheet in sheets)
sheet.LoadTexture(device);
sh = sheets[0];
}