Vulkan: Fix double free in pipeline manager.

This commit is contained in:
Unknown W. Brackets committed 2016-10-09 11:39:09 -07:00
1 parent 40e2ab1d12
commit d80598d03f
1 file changed
+3 -1
+3 -1
View File
@@ -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) {