Skip to content

Commit

Permalink
[Nodes] Fix dx11buffer issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvux committed Feb 8, 2017
1 parent 7cc2b1e commit 81ec8a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/VVVV.DX11.Lib/BaseNodes/DynamicStructuredBufferNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,12 @@ public void Update(DX11RenderContext context)
if (this.FBufferType[0] == DX11BufferUploadType.Dynamic)
{
DX11DynamicStructuredBuffer<T> b = (DX11DynamicStructuredBuffer<T>)this.FOutput[0][context];
b.WriteData(bufferToCopy, 0, bufferToCopy.Length);
b.WriteData(bufferToCopy, 0, b.ElementCount);
}
else if (this.FBufferType[0] == DX11BufferUploadType.Default)
{
DX11CopyDestStructuredBuffer<T> b = (DX11CopyDestStructuredBuffer<T>)this.FOutput[0][context];
b.WriteData(bufferToCopy, 0, bufferToCopy.Length);
b.WriteData(bufferToCopy, 0, b.ElementCount);
}

}
Expand Down

0 comments on commit 81ec8a6

Please sign in to comment.