Pass updated frame buffers on resize

This commit is contained in:
saschawillems 2017-11-03 16:35:38 +01:00
parent a8cb646a7c
commit b7d2dbced4
3 changed files with 5 additions and 4 deletions

View file

@ -540,12 +540,13 @@ namespace vks
}
}
void UIOverlay::resize(uint32_t width, uint32_t height)
void UIOverlay::resize(uint32_t width, uint32_t height, std::vector<VkFramebuffer> framebuffers)
{
ImGuiIO& io = ImGui::GetIO();
io.DisplaySize = ImVec2((float)(width), (float)(height));
createInfo.width = width;
createInfo.height = height;
createInfo.framebuffers = framebuffers;
updateCommandBuffers();
}