diff --git a/src/Graphics/Resources/Buffer.cs b/src/Graphics/Resources/Buffer.cs index bf86c0da..8563ac9c 100644 --- a/src/Graphics/Resources/Buffer.cs +++ b/src/Graphics/Resources/Buffer.cs @@ -74,7 +74,7 @@ namespace MoonWorks.Graphics Logger.LogWarn("Requested too many bytes from buffer!"); } - if (dataLengthInBytes > data.Length) + if (dataLengthInBytes > data.Length * Marshal.SizeOf()) { Logger.LogWarn("Data length is larger than the provided Span!"); }