🚨 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user