From c00c1e903af7e103f8470445a9fe57768e8ed3d8 Mon Sep 17 00:00:00 2001 From: Roman Shapiro Date: Tue, 26 Nov 2024 23:08:10 +0700 Subject: [PATCH] Eases checking of output array for GraphicsDevice.GetRenderTargetsNoAllocEXT --- src/Graphics/GraphicsDevice.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Graphics/GraphicsDevice.cs b/src/Graphics/GraphicsDevice.cs index 40de22bb..2a64ff5d 100644 --- a/src/Graphics/GraphicsDevice.cs +++ b/src/Graphics/GraphicsDevice.cs @@ -1052,7 +1052,7 @@ public int GetRenderTargetsNoAllocEXT(RenderTargetBinding[] output) { return renderTargetCount; } - else if (output.Length != renderTargetCount) + else if (output.Length < renderTargetCount) { throw new ArgumentException("Output buffer size incorrect"); }