video_core: Close shader cache if ignored (#4571)

This commit is contained in:
squidbus 2026-06-14 02:31:07 -07:00 committed by GitHub
parent 942834db32
commit cc5d35dc08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -133,6 +133,7 @@ void DataBase::Close() {
mz_zip_writer_end(&zip_ar);
}
opened = false;
LOG_INFO(Render, "Cache dumped");
}

View File

@ -316,6 +316,7 @@ 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");
Storage::DataBase::Instance().Close();
return;
}