OGL: Call GLInterface->Update() on window resize
macOS in particular requires the context be updated manually when the window is resized.
This commit is contained in:
parent
c08f6f0c53
commit
2ba8f67feb
|
@ -1446,6 +1446,7 @@ void Renderer::CheckForSurfaceResize()
|
||||||
if (!m_surface_resized.TestAndClear())
|
if (!m_surface_resized.TestAndClear())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
GLInterface->Update();
|
||||||
m_backbuffer_width = m_new_backbuffer_width;
|
m_backbuffer_width = m_new_backbuffer_width;
|
||||||
m_backbuffer_height = m_new_backbuffer_height;
|
m_backbuffer_height = m_new_backbuffer_height;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue