mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 18:23:43 +01:00
Vulkan: Fix double free in pipeline manager.
This commit is contained in:
1 parent
40e2ab1d12
commit
d80598d03f
1 file changed
+3
-1
@@ -29,7 +29,9 @@ void PipelineManagerVulkan::Clear() {
|
||||
|
||||
void PipelineManagerVulkan::DeviceLost() {
|
||||
Clear();
|
||||
vulkan_->Delete().QueueDeletePipelineCache(pipelineCache_);
|
||||
if (pipelineCache_ != VK_NULL_HANDLE)
|
||||
vulkan_->Delete().QueueDeletePipelineCache(pipelineCache_);
|
||||
pipelineCache_ = VK_NULL_HANDLE;
|
||||
}
|
||||
|
||||
void PipelineManagerVulkan::DeviceRestore(VulkanContext *vulkan) {
|
||||
|
||||
Reference in new issue
Block a user