Fix two outdated comments.

This commit is contained in:
Paul Chote
2021-02-20 15:41:16 +00:00
committed by reaperrr
parent a90e6940ab
commit 7694d0842b
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ namespace OpenRA.Graphics
float sr = 0; float sr = 0;
float sb = 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; var attribC = r.Channel == TextureChannel.RGBA ? 0x02 : ((byte)r.Channel) << 1 | 0x01;
attribC |= samplers.X << 6; attribC |= samplers.X << 6;
var ss = r as SpriteWithSecondaryData; var ss = r as SpriteWithSecondaryData;

View File

@@ -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))); var sprites = r.Value.Variants.Values.SelectMany(v => Exts.MakeArray(v.Length, x => v.GetSprite(x)));
if (sprites.Any(s => s.BlendMode != spriteLayer.BlendMode)) if (sprites.Any(s => s.BlendMode != spriteLayer.BlendMode))
throw new InvalidDataException("Resource sprites specify different blend modes. " throw new InvalidDataException("Resource sprites specify different blend modes. "