Merge pull request #12696 from pchote/fix-preview-rendering
Fix BGRA channel count.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user