vulkan swapchain fix

This commit is contained in:
Turanszki Janos
2021-07-14 12:41:38 +02:00
parent 297c868987
commit 6fdf171ae6
2 changed files with 2 additions and 9 deletions
+1 -8
View File
@@ -2982,17 +2982,10 @@ using namespace Vulkan_Internal;
renderPassInfo.dependencyCount = 1;
renderPassInfo.pDependencies = &dependency;
{
auto renderpass_internal = to_internal(&internal_state->renderpass);
if (renderpass_internal != nullptr && renderpass_internal->renderpass != VK_NULL_HANDLE)
{
allocationhandler->destroyer_renderpasses.push_back(std::make_pair(renderpass_internal->renderpass, allocationhandler->framecount));
}
}
internal_state->renderpass = RenderPass();
wiHelper::hash_combine(internal_state->renderpass.hash, internal_state->swapChainImageFormat);
auto renderpass_internal = std::make_shared<RenderPass_Vulkan>();
renderpass_internal->allocationhandler = allocationhandler;
internal_state->renderpass.internal_state = renderpass_internal;
internal_state->renderpass.desc.attachments.push_back(RenderPassAttachment::RenderTarget());
res = vkCreateRenderPass(device, &renderPassInfo, nullptr, &renderpass_internal->renderpass);
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wiVersion
// minor features, major updates, breaking compatibility changes
const int minor = 56;
// minor bug fixes, alterations, refactors, updates
const int revision = 69;
const int revision = 70;
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);