fix rendering of very large maps

This commit is contained in:
Chris Forbes
2011-03-08 19:24:15 +13:00
parent 682cfcd466
commit 16cb275a5f
9 changed files with 31 additions and 27 deletions

View File

@@ -35,7 +35,7 @@ namespace OpenRA.Graphics
x => Game.modData.SheetBuilder.Add(world.TileSet.GetBytes(x), tileSize));
Vertex[] vertices = new Vertex[4 * map.Bounds.Height * map.Bounds.Width];
ushort[] indices = new ushort[6 * map.Bounds.Height * map.Bounds.Width];
uint[] indices = new uint[6 * map.Bounds.Height * map.Bounds.Width];
terrainSheet = tileMapping[map.MapTiles.Value[map.Bounds.Left, map.Bounds.Top]].sheet;