🚨 Release the old material when re-highlighting a static

Hovering with hue highlighting reassigned the screen buffer material
without dropping the previous reference, leaking a GL texture on
every hover.
This commit is contained in:
2026-11-15 22:08:32 +01:00
parent f09b8b7fbc
commit 1fbce3570d
+2
View File
@@ -3320,6 +3320,8 @@ procedure TfrmMain.UpdateSelection;
if ABlockInfo^.HueOverride <> AHighlighted then
begin
ABlockInfo^.HueOverride := AHighlighted;
if ABlockInfo^.LowRes <> nil then
ABlockInfo^.LowRes.DelRef;
if AHighlighted then
begin
ABlockInfo^.Hue := frmHueSettings.GetHue;