18 Dec
2025
18 Dec
'25
7:43 p.m.
The context keeps a weak pointer to the swapchain, and the swapchain might be destroyed while are context still have a pointer to them. It's usually not causing issues because contexts will be refreshed with the new active swapchain before a present is executed. However, the new swapchain might be for the same window but might have a different DC. As we now borrow the DCs from the swapchains, we also need to check if the context DC needs to be updated. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58709 Instead of https://gitlab.winehq.org/wine/wine/-/merge_requests/9778 -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9798