[Git][wine/wine][master] wined3d: Update the context DC from its swapchain if it changed.

"Alexandre Julliard (@julliard) via Wine-commits" <[email protected]> Thu, 18 Dec 2025 16:09:12 -0600
Newsgroups gmane.comp.emulators.wine.cvs
Message-ID <[email protected]>

Alexandre Julliard pushed to branch master at wine / wine


Commits:
92f5d5bc by Rémi Bernon at 2025-12-18T22:55:38+01:00
wined3d: Update the context DC from its swapchain if it changed.

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

- - - - -


1 changed file:

- dlls/wined3d/context_gl.c


View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/92f5d5bc7c8412924e7cb4f6f715ecc9c4e4dd13

-- 
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/92f5d5bc7c8412924e7cb4f6f715ecc9c4e4dd13
You're receiving this email because of your account on gitlab.winehq.org.