mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
Vulkan: Don't destroy the device's pipeline cache on MSAA mode change
The user could switch back again, and this would mean this data would be lost. Disk space is cheap, and it's not going to be much.
This commit is contained in:
@ -382,15 +382,6 @@ void ObjectCache::DestroyPipelineCache()
|
||||
m_pipeline_cache = VK_NULL_HANDLE;
|
||||
}
|
||||
|
||||
void ObjectCache::ClearPipelineCache()
|
||||
{
|
||||
// Reallocate the pipeline cache object, so it starts fresh and we don't
|
||||
// save old pipelines to disk. This is for major changes, e.g. MSAA mode change.
|
||||
DestroyPipelineCache();
|
||||
if (!CreatePipelineCache(false))
|
||||
PanicAlert("Failed to re-create pipeline cache");
|
||||
}
|
||||
|
||||
void ObjectCache::SavePipelineCache()
|
||||
{
|
||||
size_t data_size;
|
||||
|
Reference in New Issue
Block a user