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 Patric Stout
parent 2c93c3b9cb
commit da55c7c69f
3 changed files with 38 additions and 7 deletions
+1
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;