summaryrefslogtreecommitdiff
path: root/platform/linuxbsd
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-10-12 22:53:49 +0200
committerGitHub <noreply@github.com>2022-10-12 22:53:49 +0200
commit261b9da77f0e2fa0a850c4a1ac55f5a6b609e490 (patch)
treeca71abd659353a2817af37875eb9d486d0dfc2b3 /platform/linuxbsd
parentf2248969db7e5cb8463f323160bed8d00aae7629 (diff)
parent882d40fa118b72202fd473a9c2b196006b6d9b1f (diff)
Merge pull request #67281 from Nidjo123/x11-window-resize
Keep rendering context window size in sync when resizing
Diffstat (limited to 'platform/linuxbsd')
-rw-r--r--platform/linuxbsd/display_server_x11.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/platform/linuxbsd/display_server_x11.cpp b/platform/linuxbsd/display_server_x11.cpp
index e0963f42ce..e78467beff 100644
--- a/platform/linuxbsd/display_server_x11.cpp
+++ b/platform/linuxbsd/display_server_x11.cpp
@@ -1729,6 +1729,18 @@ void DisplayServerX11::window_set_size(const Size2i p_size, WindowID p_window) {
usleep(10000);
}
+
+ // Keep rendering context window size in sync
+#if defined(VULKAN_ENABLED)
+ if (context_vulkan) {
+ context_vulkan->window_resize(p_window, xwa.width, xwa.height);
+ }
+#endif
+#if defined(GLES3_ENABLED)
+ if (gl_manager) {
+ gl_manager->window_resize(p_window, xwa.width, xwa.height);
+ }
+#endif
}
Size2i DisplayServerX11::window_get_size(WindowID p_window) const {