mirror of
https://github.com/coah80/LegacyVulkEdition.git
synced 2026-06-09 10:51:52 +00:00
last hurrah from me
This commit is contained in:
@@ -109,6 +109,10 @@ void VulkanBootstrapApp::recreateSwapchain()
|
||||
createFramebuffers();
|
||||
createCommandBuffers();
|
||||
setViewportRect(0, 0, swapchainExtent_.width, swapchainExtent_.height);
|
||||
|
||||
if (swapchainRecreatedCallback) {
|
||||
swapchainRecreatedCallback();
|
||||
}
|
||||
}
|
||||
|
||||
void VulkanBootstrapApp::cleanupSwapchain()
|
||||
@@ -1082,6 +1086,10 @@ void VulkanBootstrapApp::recordCommandBuffer(
|
||||
}
|
||||
vkCmdEndRenderPass(commandBuffer);
|
||||
|
||||
if (overlayCallback) {
|
||||
overlayCallback(commandBuffer, imageIndex);
|
||||
}
|
||||
|
||||
if (vkEndCommandBuffer(commandBuffer) != VK_SUCCESS)
|
||||
{
|
||||
throw std::runtime_error("vkEndCommandBuffer failed");
|
||||
|
||||
Reference in New Issue
Block a user