On Mon Oct 13 10:09:28 2025 +0000, li xiao wrote:
> When I merged this request and submitted win32u: Don't store the window
> OpenGL drawables on the DCs.:, I encountered a deadlock while running a
> software using wine: 01 a0:err:sync:RtlpWaitForCriticalSection section
> 00007F4A4ACC5570 "?" wait timed out in thread 01a0, blocked by 0134,
> retrying (60 sec). Before the merger, it's ok.
> \
> After this submission : **win32u: Don't store the window OpenGL
> drawables on the DCs.The lifecycle of opengl_rrawable is no longer
> related to DC,Why is there still**
> ```c
> struct opengl_drawable *opengl_drawable
> ```
> **in DC?**
Hi, sorry if this has caused some more issues but if there's a bug please submit a bug report to https://bugs.winehq.org with some more details about it happens and how to reproduce it.
Regarding the `opengl_drawable` member in the DC structure, it's still being used for non-Window DCs, like memory DCs, which need to keep a reference on their eventual OpenGL surface.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/8958#note_118366
When I merged this request and submitted win32u: Don't store the window OpenGL drawables on the DCs.:, I encountered a deadlock while running a software using wine: 01 a0:err:sync:RtlpWaitForCriticalSection section 00007F4A4ACC5570 "?" wait timed out in thread 01a0, blocked by 0134, retrying (60 sec). Before the merger, it's ok.
\
After this submission : **win32u: Don't store the window OpenGL drawables on the DCs.The lifecycle of opengl_rrawable is no longer related to DC,Why is there still**
```c
struct opengl_drawable *opengl_drawable
```
**in DC?**
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/8958#note_118363
This removes the need to unlock the window data, and gets rid of the separate return path, making sure the requests are flushed out in every WindowPosChanged return case. I think it'll fix some issues introduced with d3cb94b543e8ccc4a6baa7a8a2c31142a7b1a814 or 88ad7e11cbdc965928bd38ea68a51ba8d1c9c080.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/9165