Skip to content

Commit

Permalink
Dumping asset file should not be tied with trim ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
panos-lunarg committed Sep 12, 2024
1 parent 8ecc75a commit ebfa1e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions framework/encode/capture_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ebfa1e4

Please sign in to comment.