summaryrefslogtreecommitdiff
path: root/src/video/win32_v.cpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-03-20 19:43:54 +0100
committerGitHub <noreply@github.com>2021-03-20 19:43:54 +0100
commitf0f96e3103c2e740fa4340a5f1854c41df65ffa2 (patch)
tree258d9ae4b04f3f93151bf6bb81f2a7682dd34232 /src/video/win32_v.cpp
parentc92358527bb14e26553a88ca04c34b715b1e9542 (diff)
downloadopenttd-f0f96e3103c2e740fa4340a5f1854c41df65ffa2.tar.xz
Fix #8871: [OpenGL] Initialize all buffers after resize and clear back buffer. (#8877)
Diffstat (limited to 'src/video/win32_v.cpp')
-rw-r--r--src/video/win32_v.cpp1
1 files changed, 1 insertions, 0 deletions
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;