Pass updated frame buffers on resize
This commit is contained in:
parent
a8cb646a7c
commit
b7d2dbced4
3 changed files with 5 additions and 4 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue