Fix LiveCTPreviewer instantiation

This commit is contained in:
N. Lo. 2024-08-05 04:08:24 +02:00 committed by GitHub
parent 1b5553284c
commit 45fbc1605c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;