Fix viewport resizing not updating camera aspect ratio
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "Scene/VulkanGeometry.hpp"
|
||||
#include "Scene/VulkanNode.hpp"
|
||||
#include "Scene/VulkanShader.hpp"
|
||||
#include "Base/UI/IVulkanWindow.hpp"
|
||||
#include "Host/PlatformProducer.hpp"
|
||||
#include <stdexcept>
|
||||
|
||||
@@ -62,6 +63,7 @@ namespace openVulkanoCpp::Vulkan
|
||||
void Renderer::Tick()
|
||||
{
|
||||
currentImageId = context.swapChain.AcquireNextImage();
|
||||
scene->GetCamera()->SetSize(context.window->GetWidth(), context.window->GetHeight());
|
||||
Render();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user