Fix two outdated comments.
This commit is contained in:
@@ -38,7 +38,7 @@ namespace OpenRA.Graphics
|
||||
float sr = 0;
|
||||
float sb = 0;
|
||||
|
||||
// See shp.vert for documentation on the channel attribute format
|
||||
// See combined.vert for documentation on the channel attribute format
|
||||
var attribC = r.Channel == TextureChannel.RGBA ? 0x02 : ((byte)r.Channel) << 1 | 0x01;
|
||||
attribC |= samplers.X << 6;
|
||||
var ss = r as SpriteWithSecondaryData;
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
}
|
||||
}
|
||||
|
||||
// All resources must share a sheet and blend mode
|
||||
// All resources must share a blend mode
|
||||
var sprites = r.Value.Variants.Values.SelectMany(v => Exts.MakeArray(v.Length, x => v.GetSprite(x)));
|
||||
if (sprites.Any(s => s.BlendMode != spriteLayer.BlendMode))
|
||||
throw new InvalidDataException("Resource sprites specify different blend modes. "
|
||||
|
||||
Reference in New Issue
Block a user