Fix ColorTable preview with legacy color tables.

This commit is contained in:
Ottermandias 2024-05-28 00:11:54 +02:00
parent f11cefcec1
commit b30de460e7
5 changed files with 23 additions and 19 deletions

View file

@ -8,7 +8,7 @@ namespace Penumbra.Interop.MaterialPreview;
public sealed unsafe class LiveColorTablePreviewer : LiveMaterialPreviewerBase
{
public const int TextureWidth = 4;
public const int TextureHeight = GameData.Files.MaterialStructs.ColorTable.NumUsedRows;
public const int TextureHeight = GameData.Files.MaterialStructs.LegacyColorTable.NumUsedRows;
public const int TextureLength = TextureWidth * TextureHeight * 4;
private readonly IFramework _framework;