From f0f96e3103c2e740fa4340a5f1854c41df65ffa2 Mon Sep 17 00:00:00 2001 From: Michael Lutz Date: Sat, 20 Mar 2021 19:43:54 +0100 Subject: Fix #8871: [OpenGL] Initialize all buffers after resize and clear back buffer. (#8877) --- src/video/win32_v.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/video/win32_v.cpp') diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp index a802cdafa..1d9cd3e2b 100644 --- a/src/video/win32_v.cpp +++ b/src/video/win32_v.cpp @@ -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; -- cgit v1.2.3-54-g00ecf