vk pipeline cache: finalize preload state before early return on profile mismatch

This commit is contained in:
collinmcg 2026-03-06 17:35:09 -06:00
parent 6a8c50c3a2
commit c2769fda21

View File

@ -316,6 +316,9 @@ void PipelineCache::WarmUp() {
if (std::memcmp(profile_data.data(), &profile, sizeof(profile)) != 0) {
LOG_WARNING(Render,
"Pipeline cache isn't compatible with current system. Ignoring the cache");
// Keep DB lifecycle consistent before early return: in archived mode, Save() later in the
// session may still be called and expects writable archive state.
Storage::DataBase::Instance().FinishPreload();
return;
}