UI: Disable wxWidgets' new on-by-default compositing for VulkanCanvas

A similar fix had to be done as the official OpenGL canvas, see 2d37e9fbc8
This commit is contained in:
Crementif 2025-07-11 21:50:17 +02:00
parent 7f57039420
commit 2e33b16513

View file

@ -13,6 +13,9 @@ VulkanCanvas::VulkanCanvas(wxWindow* parent, const wxSize& size, bool is_main_wi
{
Bind(wxEVT_PAINT, &VulkanCanvas::OnPaint, this);
Bind(wxEVT_SIZE, &VulkanCanvas::OnResize, this);
#if __WXMSW__
MSWDisableComposited();
#endif
auto& canvas = is_main_window ? WindowSystem::GetWindowInfo().canvas_main : WindowSystem::GetWindowInfo().canvas_pad;
canvas = initHandleContextFromWxWidgetsWindow(this);