video_core/vulkan: Added check if Vulkan pipeline path has been set

master
Wollnashorn 2022-12-31 21:39:14 +07:00
parent f4626512ff
commit f2aa816679
1 changed files with 1 additions and 1 deletions

@ -365,7 +365,7 @@ PipelineCache::PipelineCache(RasterizerVulkan& rasterizer_, const Device& device
}
PipelineCache::~PipelineCache() {
if (use_vulkan_pipeline_cache) {
if (use_vulkan_pipeline_cache && !vulkan_pipeline_cache_filename.empty()) {
SerializeVulkanPipelineCache(vulkan_pipeline_cache_filename, vulkan_pipeline_cache);
}
}