Fix lazy rendering issues when resizing window
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user