Deferred*: Fix incorrect command pool in deinitialization
This commit is contained in:
parent
f5dbf162a7
commit
f3a65f298d
3 changed files with 0 additions and 6 deletions
|
|
@ -198,8 +198,6 @@ public:
|
||||||
uniformBuffers.vsFullScreen.destroy();
|
uniformBuffers.vsFullScreen.destroy();
|
||||||
uniformBuffers.fsLights.destroy();
|
uniformBuffers.fsLights.destroy();
|
||||||
|
|
||||||
vkFreeCommandBuffers(device, cmdPool, 1, &offScreenCmdBuffer);
|
|
||||||
|
|
||||||
vkDestroyRenderPass(device, offScreenFrameBuf.renderPass, nullptr);
|
vkDestroyRenderPass(device, offScreenFrameBuf.renderPass, nullptr);
|
||||||
|
|
||||||
textures.model.colorMap.destroy();
|
textures.model.colorMap.destroy();
|
||||||
|
|
|
||||||
|
|
@ -199,8 +199,6 @@ public:
|
||||||
uniformBuffers.vsFullScreen.destroy();
|
uniformBuffers.vsFullScreen.destroy();
|
||||||
uniformBuffers.fsLights.destroy();
|
uniformBuffers.fsLights.destroy();
|
||||||
|
|
||||||
vkFreeCommandBuffers(device, cmdPool, 1, &offScreenCmdBuffer);
|
|
||||||
|
|
||||||
vkDestroyRenderPass(device, offScreenFrameBuf.renderPass, nullptr);
|
vkDestroyRenderPass(device, offScreenFrameBuf.renderPass, nullptr);
|
||||||
|
|
||||||
textures.model.colorMap.destroy();
|
textures.model.colorMap.destroy();
|
||||||
|
|
|
||||||
|
|
@ -219,8 +219,6 @@ public:
|
||||||
uniformBuffers.fsLights.destroy();
|
uniformBuffers.fsLights.destroy();
|
||||||
uniformBuffers.uboShadowGS.destroy();
|
uniformBuffers.uboShadowGS.destroy();
|
||||||
|
|
||||||
vkFreeCommandBuffers(device, cmdPool, 1, &commandBuffers.deferred);
|
|
||||||
|
|
||||||
// Textures
|
// Textures
|
||||||
textures.model.colorMap.destroy();
|
textures.model.colorMap.destroy();
|
||||||
textures.model.normalMap.destroy();
|
textures.model.normalMap.destroy();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue