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

@@ -131,6 +131,7 @@ bool VideoDriver_SDL_OpenGL::AllocateBackingStore(int w, int h, bool force)
MemSetT(&this->dirty_rect, 0);
bool res = OpenGLBackend::Get()->Resize(w, h, force);
SDL_GL_SwapWindow(this->sdl_window);
_screen.dst_ptr = this->GetVideoPointer();
_cur_palette.first_dirty = 0;