Add missing dispose calls

This commit is contained in:
Gustas
2025-03-10 18:45:14 +02:00
committed by Paul Chote
parent c9ac702217
commit ec01f63317
6 changed files with 46 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits
{
public abstract class RenderPostProcessPassBase : IRenderPostProcessPass
public abstract class RenderPostProcessPassBase : IRenderPostProcessPass, INotifyActorDisposing
{
readonly Renderer renderer;
readonly IShader shader;
@@ -52,5 +52,10 @@ namespace OpenRA.Mods.Common.Traits
protected abstract bool Enabled { get; }
protected abstract void PrepareRender(WorldRenderer wr, IShader shader);
void INotifyActorDisposing.Disposing(Actor self)
{
buffer.Dispose();
}
}
}