From 995aea5740bf8b3862aa3577c54a5848a4e0b2b5 Mon Sep 17 00:00:00 2001 From: LunaDL <91587464+EnzoDLofi@users.noreply.github.com> Date: Fri, 27 Nov 2026 13:19:46 -0400 Subject: [PATCH] Allow safe scratch teardown on device loss --- app/src/main/cpp/framegen/ddfg/record_impl.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/framegen/ddfg/record_impl.inc b/app/src/main/cpp/framegen/ddfg/record_impl.inc index 3de7e4ff65..5740edd325 100644 --- a/app/src/main/cpp/framegen/ddfg/record_impl.inc +++ b/app/src/main/cpp/framegen/ddfg/record_impl.inc @@ -176,8 +176,8 @@ static void destroyScratch(const DeviceDispatch* dd, VkDevice dev, VkDescriptorP S = ScratchState{}; } -void FrameGen::destroyScratchResources() { - destroyScratch(dd_, device_, descPool_); +void FrameGen::destroyScratchResources(bool resetPool) { + destroyScratch(dd_, device_, descPool_, resetPool); } void FrameGen::configure(const Config& c) {