6 Mar
2024
6 Mar
'24
11:11 a.m.
On Tue Mar 5 19:46:46 2024 +0000, Rémi Bernon wrote:
Then use the new `find_drawable_for_hwnd` here, and split this too. ```suggestion:-17+0 static struct wayland_gl_drawable *wayland_gl_drawable_acquire(struct wayland_gl_drawable *gl) { InterlockedIncrement(&gl->ref); return ref; } static struct wayland_gl_drawable *wayland_gl_drawable_get(HWND hwnd) { struct wayland_gl_drawable *ret; pthread_mutex_lock(&gl_object_mutex); if ((ret = find_drawable_for_hwnd(hwnd))) ret = wayland_gl_drawable_acquire(gl); pthread_mutex_unlock(&gl_object_mutex); return ret; } ``` Done.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/5177#note_63689