summaryrefslogtreecommitdiffstats
path: root/tools/render-test
diff options
context:
space:
mode:
Diffstat (limited to 'tools/render-test')
-rw-r--r--tools/render-test/render-test-main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/render-test/render-test-main.cpp b/tools/render-test/render-test-main.cpp
index f822ea808..d36ee8a86 100644
--- a/tools/render-test/render-test-main.cpp
+++ b/tools/render-test/render-test-main.cpp
@@ -746,6 +746,8 @@ void RenderTestApp::_initializeAccelerationStructure()
draftCreateDesc.size = accelerationStructurePrebuildInfo.resultDataMaxSize;
m_device->createAccelerationStructure(draftCreateDesc, draftAS.writeRef());
+ compactedSizeQuery->reset();
+
auto commandBuffer = m_transientHeap->createCommandBuffer();
auto encoder = commandBuffer->encodeRayTracingCommands();
IAccelerationStructure::BuildDesc buildDesc = {};