mirror of https://github.com/AxioDL/boo.git
Removed double pipeline cache free
This commit is contained in:
parent
0e48afcc02
commit
6504bfc8c8
|
@ -1654,7 +1654,7 @@ class VulkanShaderPipeline : public IShaderPipeline
|
||||||
const VulkanVertexFormat* vtxFmt,
|
const VulkanVertexFormat* vtxFmt,
|
||||||
BlendFactor srcFac, BlendFactor dstFac, Primitive prim,
|
BlendFactor srcFac, BlendFactor dstFac, Primitive prim,
|
||||||
bool depthTest, bool depthWrite, bool backfaceCulling)
|
bool depthTest, bool depthWrite, bool backfaceCulling)
|
||||||
: m_ctx(ctx), m_pipelineCache(pipelineCache)
|
: m_ctx(ctx)
|
||||||
{
|
{
|
||||||
VkDynamicState dynamicStateEnables[VK_DYNAMIC_STATE_RANGE_SIZE] = {};
|
VkDynamicState dynamicStateEnables[VK_DYNAMIC_STATE_RANGE_SIZE] = {};
|
||||||
VkPipelineDynamicStateCreateInfo dynamicState = {};
|
VkPipelineDynamicStateCreateInfo dynamicState = {};
|
||||||
|
@ -1767,11 +1767,9 @@ class VulkanShaderPipeline : public IShaderPipeline
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
VkPipeline m_pipeline;
|
VkPipeline m_pipeline;
|
||||||
VkPipelineCache m_pipelineCache;
|
|
||||||
~VulkanShaderPipeline()
|
~VulkanShaderPipeline()
|
||||||
{
|
{
|
||||||
vk::DestroyPipeline(m_ctx->m_dev, m_pipeline, nullptr);
|
vk::DestroyPipeline(m_ctx->m_dev, m_pipeline, nullptr);
|
||||||
vk::DestroyPipelineCache(m_ctx->m_dev, m_pipelineCache, nullptr);
|
|
||||||
}
|
}
|
||||||
VulkanShaderPipeline& operator=(const VulkanShaderPipeline&) = delete;
|
VulkanShaderPipeline& operator=(const VulkanShaderPipeline&) = delete;
|
||||||
VulkanShaderPipeline(const VulkanShaderPipeline&) = delete;
|
VulkanShaderPipeline(const VulkanShaderPipeline&) = delete;
|
||||||
|
|
Loading…
Reference in New Issue