From c416e955a444bcd35bd12b283356c89e3212df5d Mon Sep 17 00:00:00 2001 From: routersys Date: Thu, 2 Jul 2026 13:17:57 +0900 Subject: [PATCH] =?UTF-8?q?tempbuffer=E5=90=88=E6=88=90=E3=82=92SoftwareCo?= =?UTF-8?q?mpositor.Instance=E3=81=AETryCompose=E5=91=BC=E3=81=B3=E5=87=BA?= =?UTF-8?q?=E3=81=97=E3=81=B8=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuaScript/AviUtlScriptContext.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LuaScript/AviUtlScriptContext.cs b/LuaScript/AviUtlScriptContext.cs index e671441..2574a52 100644 --- a/LuaScript/AviUtlScriptContext.cs +++ b/LuaScript/AviUtlScriptContext.cs @@ -91,7 +91,7 @@ namespace LuaScript internal void ClearEffects() => _effectRequests.Clear(); - internal IBufferCompositor Compositor { get; set; } = new SoftwareCompositor(); + internal IBufferCompositor Compositor { get; set; } = SoftwareCompositor.Instance; private readonly List _drawCommands = []; @@ -141,7 +141,7 @@ namespace LuaScript _buffers["t"] = temp; } - Compositor.Compose(temp.Data, temp.Width, temp.Height, src, ImageWidth, ImageHeight, command); + Compositor.TryCompose(temp.Data, temp.Width, temp.Height, src, ImageWidth, ImageHeight, command); } private readonly Dictionary _buffers = new(StringComparer.Ordinal);