From 81ec8a6d4dc33ef073cdc2b7952aee48e212e4ab Mon Sep 17 00:00:00 2001 From: Julien Vulliet Date: Wed, 8 Feb 2017 14:13:31 +0100 Subject: [PATCH] [Nodes] Fix dx11buffer issue --- Core/VVVV.DX11.Lib/BaseNodes/DynamicStructuredBufferNode.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }