Fix ImGui texture usage issue

This commit is contained in:
Exter-N 2025-08-17 01:41:49 +02:00
parent 87ace28bcf
commit aa920b5e9b

View file

@ -131,7 +131,7 @@ public sealed unsafe class MaterialTemplatePickers : IUiService
if (texture == null)
continue;
var handle = _textureArraySlicer.GetImGuiHandle(texture, sliceIndex);
if (handle == 0)
if (handle.IsNull)
continue;
var position = regionStart with { X = regionStart.X + (itemSize.X + itemSpacing) * j };