Fix issues with Window resizing

This commit is contained in:
2023-09-19 15:40:11 +02:00
parent 090e75a1ca
commit 1e693a184e

View File

@@ -191,6 +191,7 @@ namespace openVulkanoCpp
void GraphicsAppManager::OnWindowResize(openVulkanoCpp::IWindow* window, const uint32_t newWidth, const uint32_t newHeight)
{
if(window != this->window) return;
if (window->GetWidth() != newWidth || window->GetHeight() != newHeight) window->SetSize(newWidth, newHeight);
renderer->Resize(newWidth, newHeight);
}