Skip to content

Commit

Permalink
Eases checking of output array for GraphicsDevice.GetRenderTargetsNoA…
Browse files Browse the repository at this point in the history
…llocEXT
  • Loading branch information
rds1983 authored and flibitijibibo committed Nov 26, 2024
1 parent de17e24 commit b8a1593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Graphics/GraphicsDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit b8a1593

Please sign in to comment.