- fix shutdown crash

This commit is contained in:
Magnus Norddahl 2019-04-11 18:21:51 +02:00
parent 1e7911d1f9
commit 40a72c71f5
2 changed files with 6 additions and 0 deletions

View file

@ -14,6 +14,11 @@ VkRenderPassManager::VkRenderPassManager()
{
}
VkRenderPassManager::~VkRenderPassManager()
{
DynamicSet.reset(); // Needed since it must come before destruction of DynamicDescriptorPool
}
void VkRenderPassManager::Init()
{
CreateDynamicSetLayout();

View file

@ -67,6 +67,7 @@ class VkRenderPassManager
{
public:
VkRenderPassManager();
~VkRenderPassManager();
void Init();
void RenderBuffersReset();