Fix lazy rendering issues when resizing window

This commit is contained in:
Georg Hagen
2024-07-02 16:08:34 +02:00
parent c8bcd27ec1
commit c008c98311

View File

@@ -191,6 +191,7 @@ namespace OpenVulkano
{
if (window != this->window) return;
Resume();
CURRENT_FRAME.needsRedraw = true;
}
void GraphicsAppManager::OnWindowFocusLost(IWindow* window)
@@ -209,6 +210,7 @@ namespace OpenVulkano
if(window != this->window) return;
if (window->GetWidth() != newWidth || window->GetHeight() != newHeight) window->SetSize(newWidth, newHeight);
renderer->Resize(newWidth, newHeight);
CURRENT_FRAME.needsRedraw = true;
}
void GraphicsAppManager::OnWindowClose(OpenVulkano::IWindow* window)