diff options
author | Wollnashorn <Wollnashorn@users.noreply.github.com> | 2022-12-31 21:39:14 +0100 |
---|---|---|
committer | Wollnashorn <Wollnashorn@users.noreply.github.com> | 2023-01-05 21:03:01 +0100 |
commit | f2aa8166796742b16b1a09204a63cb990a311100 (patch) | |
tree | b74d635a52d2413af3b396a62391543c4b4b8c72 /src | |
parent | f4626512ff67f6a27235b831111330b42313c312 (diff) |
video_core/vulkan: Added check if Vulkan pipeline path has been set
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_pipeline_cache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp index e0e2be90c..7bded3ec5 100644 --- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp @@ -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); } } |