From 1fbce3570d75b3e3a307cb7fab1bc210e32eebb8 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 15 Nov 2026 14:19:17 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Release=20the=20old=20material?= =?UTF-8?q?=20when=20re-highlighting=20a=20static?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hovering with hue highlighting reassigned the screen buffer material without dropping the previous reference, leaking a GL texture on every hover. --- Client/UfrmMain.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Client/UfrmMain.pas b/Client/UfrmMain.pas index 3f3be90..9e35418 100644 --- a/Client/UfrmMain.pas +++ b/Client/UfrmMain.pas @@ -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;