Removed double pipeline cache free

This commit is contained in:
Jack Andersen 2016-06-29 19:42:27 -10:00
parent 0e48afcc02
commit 6504bfc8c8
1 changed files with 1 additions and 3 deletions

View File

@ -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;