fix bounds check error message in TransferBuffer

what_if_no_video_threads
cosmonaut 2024-03-05 22:51:06 -08:00
parent a004488f81
commit cba6ca59d3
1 changed files with 1 additions and 1 deletions

View File

@ -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