Fix issue with resizing viewport
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user