From 637d8689f5bb73edd88d923db0b2bcdb474ee734 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Mon, 8 Dec 2025 18:18:01 +0000 Subject: [PATCH] Fix invalid cast. --- OpenRA.Platforms.Default/ThreadedGraphicsContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Platforms.Default/ThreadedGraphicsContext.cs b/OpenRA.Platforms.Default/ThreadedGraphicsContext.cs index 5c4d1ad133..74f1b16aa7 100644 --- a/OpenRA.Platforms.Default/ThreadedGraphicsContext.cs +++ b/OpenRA.Platforms.Default/ThreadedGraphicsContext.cs @@ -780,7 +780,7 @@ namespace OpenRA.Platforms.Default setMatrix = tuple => { var t = ((string, float[]))tuple; shader.SetMatrix(t.Item1, t.Item2); }; setTexture = tuple => { var t = ((string, ITexture))tuple; shader.SetTexture(t.Item1, t.Item2); }; setVec1 = tuple => { var t = ((string, float))tuple; shader.SetVec(t.Item1, t.Item2); }; - setVec2 = tuple => { var t = ((string, float[], int))tuple; shader.SetVec(t.Item1, t.Item2, t.Item3); }; + setVec2 = tuple => { var t = ((string, ReadOnlyMemory, int))tuple; shader.SetVec(t.Item1, t.Item2, t.Item3); }; setVec3 = tuple => { var t = ((string, float, float))tuple; shader.SetVec(t.Item1, t.Item2, t.Item3); }; setVec4 = tuple => { var t = ((string, float, float, float))tuple; shader.SetVec(t.Item1, t.Item2, t.Item3, t.Item4); }; }