Merge pull request #12696 from pchote/fix-preview-rendering

Fix BGRA channel count.
This commit is contained in:
abcdefg30
2017-02-10 12:13:15 +01:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -22,10 +22,12 @@ namespace OpenRA.Graphics
: base(message) { }
}
// The enum values indicate the number of channels used by the type
// They are not arbitrary IDs!
public enum SheetType
{
Indexed = 1,
BGRA = 2,
BGRA = 4,
}
public sealed class SheetBuilder : IDisposable

View File

@@ -185,7 +185,8 @@ namespace OpenRA.Graphics
.Concat(aboveShroudSelected)
.Concat(aboveShroudEffects)
.Concat(aboveShroudOrderGenerator)
.Select(r => r.PrepareRender(this));
.Select(r => r.PrepareRender(this))
.ToList();
Game.Renderer.WorldVoxelRenderer.EndFrame();
// HACK: Keep old grouping behaviour