Increase SheetCount back to 8.

This was previously decreased to support legacy GPUs
that only supported 8 texture image units and we need
to reserve one of these for the palette texture.

OpenGL 3.X mandates a minimum of 16 (and most most GL2
cards also supported it) so we can now safely increase
this limit.
This commit is contained in:
Paul Chote
2021-04-23 22:36:30 +01:00
committed by reaperrr
parent 7967a462a1
commit 95f5d162ef
2 changed files with 15 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ namespace OpenRA.Graphics
{
public class SpriteRenderer : Renderer.IBatchRenderer
{
public const int SheetCount = 7;
public const int SheetCount = 8;
static readonly string[] SheetIndexToTextureName = Exts.MakeArray(SheetCount, i => $"Texture{i}");
readonly Renderer renderer;