From 6504bfc8c87403801f38947b06ed2a30f10978fb Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Wed, 29 Jun 2016 19:42:27 -1000 Subject: [PATCH] Removed double pipeline cache free --- lib/graphicsdev/Vulkan.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/graphicsdev/Vulkan.cpp b/lib/graphicsdev/Vulkan.cpp index 7f0a4da..2275471 100644 --- a/lib/graphicsdev/Vulkan.cpp +++ b/lib/graphicsdev/Vulkan.cpp @@ -1654,7 +1654,7 @@ class VulkanShaderPipeline : public IShaderPipeline const VulkanVertexFormat* vtxFmt, BlendFactor srcFac, BlendFactor dstFac, Primitive prim, bool depthTest, bool depthWrite, bool backfaceCulling) - : m_ctx(ctx), m_pipelineCache(pipelineCache) + : m_ctx(ctx) { VkDynamicState dynamicStateEnables[VK_DYNAMIC_STATE_RANGE_SIZE] = {}; VkPipelineDynamicStateCreateInfo dynamicState = {}; @@ -1767,11 +1767,9 @@ class VulkanShaderPipeline : public IShaderPipeline } public: VkPipeline m_pipeline; - VkPipelineCache m_pipelineCache; ~VulkanShaderPipeline() { vk::DestroyPipeline(m_ctx->m_dev, m_pipeline, nullptr); - vk::DestroyPipelineCache(m_ctx->m_dev, m_pipelineCache, nullptr); } VulkanShaderPipeline& operator=(const VulkanShaderPipeline&) = delete; VulkanShaderPipeline(const VulkanShaderPipeline&) = delete;