Skip to content

Commit 02c0d94

Browse files
author
devsh
committed
forgot to overwrite staging cache XD
1 parent 9a3cc69 commit 02c0d94

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/nbl/video/utilities/CAssetConverter.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5276,6 +5276,9 @@ ISemaphore::future_t<IQueue::RESULT> CAssetConverter::convert_impl(SReserveResul
52765276
auto& resultOutput = std::get<SReserveResult::vector_t<CPUAccelerationStructure>>(reservations.m_gpuObjects);
52775277
resultOutput[foundIx->second].value = compactedAS;
52785278
}
5279+
// overwrite staging cache
5280+
auto pFound = findInStaging.template operator()<CPUAccelerationStructure>(srcAS);
5281+
pFound->second.gpuRef = compactedAS;
52795282
// insert into compaction map
52805283
retval[srcAS] = std::move(compactedAS);
52815284
}

0 commit comments

Comments
 (0)