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