Fix LiveCTPreviewer instantiation

This commit is contained in:
N. Lo. 2024-08-05 04:08:24 +02:00 committed by Ottermandias
parent 1b5553284c
commit f68e919421

View file

@ -37,7 +37,7 @@ public sealed unsafe class LiveColorTablePreviewer : LiveMaterialPreviewerBase
_originalColorTableTexture = new SafeTextureHandle(*_colorTableTexture, true);
if (_originalColorTableTexture == null)
if (_originalColorTableTexture.Texture == null)
throw new InvalidOperationException("Material doesn't have a color table");
Width = (int)_originalColorTableTexture.Texture->Width;