Fix issue with resizing viewport

This commit is contained in:
2020-10-15 23:55:11 +02:00
parent 079b55f0d0
commit 3c129e4653
4 changed files with 34 additions and 12 deletions

View File

@@ -1,4 +1,11 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
#pragma once
#include "vulkan/vulkan.hpp"
#include "../Device.hpp"
#include "../../Base/ICloseable.hpp"
@@ -93,9 +100,7 @@ namespace openVulkanoCpp
{
for (auto shader : shaders)
{
Scene::Shader* s = shader->shader;
shader->Close();
shader->Init(context, s, this);
shader->Resize();
}
}