Files
Dongwon Kim 78809254f3 ui/gtk: Clean up GL resources on tab detach, re-attach, and VC free
When a VC is detached into an independent window or re-attached back
to the main window via gd_tab_window_close(), its underlying EGL surface
and context are destroyed and recreated.

However, the associated FB objects (guest_fb, win_fb, cursor_fb),
display surface textures, and shader instances were not being cleaned up
during these transitions, leading to potential resource leaks.

Introduce a helper function, gd_gl_release_resources(), to make the
appropriate GL context current, delete the textures and framebuffers,
release the shader instance, and reset state pointers.

Use this helper in gd_tab_window_close(), gd_menu_untabify(), and refactor
gd_vc_free() to use it as well.

Cc: Daniel P. Berrangé <berrange@redhat.com>
Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20260729134759.2877-1-dongwon.kim@intel.com>
2026-09-13 14:41:12 +04:00
..
2026-06-24 15:41:15 +04:00
2026-06-24 15:41:15 +04:00
2021-12-21 10:50:22 +04:00
2021-12-21 10:50:22 +04:00
2026-09-10 19:59:42 +04:00
2026-05-25 01:00:54 +04:00
2026-05-25 02:01:35 +04:00
2026-05-25 02:01:35 +04:00
2026-06-24 15:41:15 +04:00
2026-06-24 15:41:14 +04:00
2026-05-25 02:01:35 +04:00
…
2026-04-22 12:51:23 +04:00
2022-11-08 10:23:06 +01:00
2023-08-31 19:47:43 +02:00
…
2026-05-25 01:00:53 +04:00
2026-05-25 02:01:34 +04:00
2026-05-25 02:01:34 +04:00