From d1279c25fadbe5131f7d7e98171895c57e4990c4 Mon Sep 17 00:00:00 2001 From: routersys Date: Sat, 4 Jul 2026 11:47:37 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=95=E3=83=AC=E3=83=BC=E3=83=A0=E3=83=90?= =?UTF-8?q?=E3=83=83=E3=83=95=E3=82=A1=E5=87=BA=E5=8A=9B=E5=BE=8C=E3=81=AB?= =?UTF-8?q?obj=E5=AF=B8=E6=B3=95=E3=82=92=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuaScript.Runtime/Engine/LuaScriptEngine.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LuaScript.Runtime/Engine/LuaScriptEngine.cs b/LuaScript.Runtime/Engine/LuaScriptEngine.cs index 15af375..5c6f556 100644 --- a/LuaScript.Runtime/Engine/LuaScriptEngine.cs +++ b/LuaScript.Runtime/Engine/LuaScriptEngine.cs @@ -669,8 +669,8 @@ namespace LuaScript if (status == PixelShaderRunStatus.CompileError) throw new ScriptRuntimeException($"obj.pixelshader: shader '{name}' failed to compile.\n{error}"); - if (status == PixelShaderRunStatus.Success) - ctx.NotifyShaderTargetWritten(target); + if (status == PixelShaderRunStatus.Success && ctx.NotifyShaderTargetWritten(target)) + RefreshObjDimensions(); return DynValue.Void; }