Skip to content

Commit

Permalink
memory leak fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nv-jdeligiannis committed Sep 11, 2023
1 parent d3a10eb commit 89515b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d3d12/d3d12-raytracing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ namespace nvrhi::d3d12
om->dataBuffer = checked_cast<Buffer*>(buffer.Get());
assert((om->dataBuffer->gpuVA % NVAPI_D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_BYTE_ALIGNMENT) == 0);
}
return om;
return rt::OpacityMicromapHandle::Create(om);
#else
utils::NotSupported();
return nullptr;
Expand Down

0 comments on commit 89515b8

Please sign in to comment.