diff --git a/Core/VVVV.DX11.Lib/BaseNodes/DynamicStructuredBufferNode.cs b/Core/VVVV.DX11.Lib/BaseNodes/DynamicStructuredBufferNode.cs index c48bb725..5a64bb00 100644 --- a/Core/VVVV.DX11.Lib/BaseNodes/DynamicStructuredBufferNode.cs +++ b/Core/VVVV.DX11.Lib/BaseNodes/DynamicStructuredBufferNode.cs @@ -164,12 +164,12 @@ public void Update(DX11RenderContext context) if (this.FBufferType[0] == DX11BufferUploadType.Dynamic) { DX11DynamicStructuredBuffer b = (DX11DynamicStructuredBuffer)this.FOutput[0][context]; - b.WriteData(bufferToCopy, 0, bufferToCopy.Length); + b.WriteData(bufferToCopy, 0, b.ElementCount); } else if (this.FBufferType[0] == DX11BufferUploadType.Default) { DX11CopyDestStructuredBuffer b = (DX11CopyDestStructuredBuffer)this.FOutput[0][context]; - b.WriteData(bufferToCopy, 0, bufferToCopy.Length); + b.WriteData(bufferToCopy, 0, b.ElementCount); } }