Skip to content

Commit f68e919

Browse files
Exter-NOttermandias
authored andcommitted
Fix LiveCTPreviewer instantiation
1 parent 1b55532 commit f68e919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Penumbra/Interop/MaterialPreview/LiveColorTablePreviewer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public LiveColorTablePreviewer(ObjectManager objects, IFramework framework, Mate
3737

3838

3939
_originalColorTableTexture = new SafeTextureHandle(*_colorTableTexture, true);
40-
if (_originalColorTableTexture == null)
40+
if (_originalColorTableTexture.Texture == null)
4141
throw new InvalidOperationException("Material doesn't have a color table");
4242

4343
Width = (int)_originalColorTableTexture.Texture->Width;

0 commit comments

Comments
 (0)