From cba6ca59d3f0510a6e0f87baeac79a09cbbb2b75 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Tue, 5 Mar 2024 22:51:06 -0800 Subject: [PATCH] fix bounds check error message in TransferBuffer --- src/Graphics/Resources/TransferBuffer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Graphics/Resources/TransferBuffer.cs b/src/Graphics/Resources/TransferBuffer.cs index 0b87c57..54398d3 100644 --- a/src/Graphics/Resources/TransferBuffer.cs +++ b/src/Graphics/Resources/TransferBuffer.cs @@ -144,7 +144,7 @@ namespace MoonWorks.Graphics { if (copyLengthInBytes > bufferLengthInBytes + offsetInBytes) { - throw new InvalidOperationException($"SetData overflow! Transfer buffer length {bufferLengthInBytes}, offset {offsetInBytes}, copy length {copyLengthInBytes}"); + throw new InvalidOperationException($"Data overflow! Transfer buffer length {bufferLengthInBytes}, offset {offsetInBytes}, copy length {copyLengthInBytes}"); } } #endif