vk_pipeline_cache: Skip cache save when no pipeline cache exists

* This is the cache when loading a save state
This commit is contained in:
GPUCode
2023-08-26 00:29:25 +03:00
parent bcbce50120
commit 6bfe1daac7

View File

@@ -148,7 +148,7 @@ void PipelineCache::LoadDiskCache() {
}
void PipelineCache::SaveDiskCache() {
if (!Settings::values.use_disk_shader_cache || !EnsureDirectories()) {
if (!Settings::values.use_disk_shader_cache || !EnsureDirectories() || !pipeline_cache) {
return;
}