summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D12
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-12-15 19:56:02 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-12-15 19:56:02 +0000
commitdb12b1722fefd611a0d4dbb81a3705dbc0462e31 (patch)
treec0bd225fcd8fa8f5bc42e354aa8741d7e10f81e4 /Graphics/GraphicsEngineD3D12
parentMerge branch 'azhirnov-ray_tracing_2' (diff)
downloadDiligentCore-db12b1722fefd611a0d4dbb81a3705dbc0462e31.tar.gz
DiligentCore-db12b1722fefd611a0d4dbb81a3705dbc0462e31.zip
Minor fix after merge
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
-rw-r--r--Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp
index 9a833fe1..78320cc1 100644
--- a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp
+++ b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp
@@ -2454,7 +2454,7 @@ void DeviceContextD3D12Impl::BuildTLAS(const BuildTLASAttribs& Attribs)
// copy instance data into instance buffer
{
size_t Size = Attribs.InstanceCount * sizeof(D3D12_RAYTRACING_INSTANCE_DESC);
- auto TmpSpace = m_DynamicHeap.Allocate(Size, 16, m_ContextFrameNumber);
+ auto TmpSpace = m_DynamicHeap.Allocate(Size, 16, m_FrameNumber);
for (Uint32 i = 0; i < Attribs.InstanceCount; ++i)
{