Fix #8871: [OpenGL] Initialize all buffers after resize and clear back buffer. (#8877)

This commit is contained in:
Michael Lutz
2021-03-20 19:43:54 +01:00
committed by GitHub
parent c92358527b
commit f0f96e3103
3 changed files with 38 additions and 7 deletions

View File

@@ -1417,6 +1417,7 @@ bool VideoDriver_Win32OpenGL::AllocateBackingStore(int w, int h, bool force)
this->dirty_rect = {};
bool res = OpenGLBackend::Get()->Resize(w, h, force);
SwapBuffers(this->dc);
_screen.dst_ptr = this->GetVideoPointer();
return res;