Moved swapchain creation into prepare function

This commit is contained in:
saschawillems 2017-10-21 16:51:39 +02:00
parent ef067b0cf7
commit 19245a0f51
3 changed files with 2 additions and 10 deletions

View file

@ -176,10 +176,10 @@ void VulkanExampleBase::createPipelineCache()
void VulkanExampleBase::prepare()
{
if (vulkanDevice->enableDebugMarkers)
{
if (vulkanDevice->enableDebugMarkers) {
vks::debugmarker::setup(device);
}
initSwapchain();
createCommandPool();
setupSwapChain();
createCommandBuffers();