mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix LiveCTPreviewer instantiation
This commit is contained in:
parent
1b5553284c
commit
f68e919421
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ public sealed unsafe class LiveColorTablePreviewer : LiveMaterialPreviewerBase
|
||||||
|
|
||||||
|
|
||||||
_originalColorTableTexture = new SafeTextureHandle(*_colorTableTexture, true);
|
_originalColorTableTexture = new SafeTextureHandle(*_colorTableTexture, true);
|
||||||
if (_originalColorTableTexture == null)
|
if (_originalColorTableTexture.Texture == null)
|
||||||
throw new InvalidOperationException("Material doesn't have a color table");
|
throw new InvalidOperationException("Material doesn't have a color table");
|
||||||
|
|
||||||
Width = (int)_originalColorTableTexture.Texture->Width;
|
Width = (int)_originalColorTableTexture.Texture->Width;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue