Skip to content

Commit

Permalink
fix: ensure proper disposal of RenderTarget in FilterEffectActivator
Browse files Browse the repository at this point in the history
  • Loading branch information
yuto-trd committed Dec 10, 2024
1 parent 1c64fd6 commit 16ab258
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void Flush(bool force = true)
for (int i = 0; i < CurrentTargets.Count; i++)
{
EffectTarget target = CurrentTargets[i];
RenderTarget? surface = RenderTarget.Create((int)target.OriginalBounds.Width, (int)target.OriginalBounds.Height);
using RenderTarget? surface = RenderTarget.Create((int)target.OriginalBounds.Width, (int)target.OriginalBounds.Height);

if (surface != null)
{
Expand Down

0 comments on commit 16ab258

Please sign in to comment.