From ebfa1e4ca980def3ca3f5a18fe8563e848bb230b Mon Sep 17 00:00:00 2001 From: Panagiotis Apostolou Date: Thu, 12 Sep 2024 19:26:52 +0300 Subject: [PATCH] Dumping asset file should not be tied with trim ranges --- framework/encode/capture_manager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/framework/encode/capture_manager.cpp b/framework/encode/capture_manager.cpp index 3506f759b..dfef8f619 100644 --- a/framework/encode/capture_manager.cpp +++ b/framework/encode/capture_manager.cpp @@ -768,7 +768,7 @@ void CommonCaptureManager::CheckContinueCaptureForWriteMode(format::ApiFamilyId void CommonCaptureManager::CheckStartCaptureForTrackMode(format::ApiFamilyId api_family, uint32_t current_boundary_count) { - GFXRECON_WRITE_CONSOLE("%s()") + GFXRECON_WRITE_CONSOLE("%s()", __func__) GFXRECON_WRITE_CONSOLE(" trim_ranges_.empty(): %u", trim_ranges_.empty()) GFXRECON_WRITE_CONSOLE(" RuntimeTriggerEnabled: %u", RuntimeTriggerEnabled()) GFXRECON_WRITE_CONSOLE(" RuntimeWriteAssetsEnabled(): %u", RuntimeWriteAssetsEnabled()) @@ -810,7 +810,9 @@ void CommonCaptureManager::CheckStartCaptureForTrackMode(format::ApiFamilyId api capture_mode_ = kModeDisabled; } } - else if ((RuntimeWriteAssetsEnabled() || write_assets_) && capture_mode_ == kModeTrack) + + // Check to see if an asset dumping has been requested outside of capture range + if (use_asset_file_ && (RuntimeWriteAssetsEnabled() || write_assets_) && capture_mode_ == kModeTrack) { GFXRECON_WRITE_CONSOLE(" %u", __LINE__) capture_mode_ |= kModeWrite;