Merge pull request #67281 from Nidjo123/x11-window-resize

Keep rendering context window size in sync when resizing
This commit is contained in:
Rémi Verschelde 2022-10-12 22:53:49 +02:00 committed by GitHub
commit 261b9da77f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {