From: Brian Paul Date: Tue, 10 Nov 2015 21:49:01 +0000 (-0700) Subject: st/wgl: add a lock assertion in stw_framebuffer_from_hwnd_locked() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f45b644e11127e07fe909f418d1c0e2ca3285743;p=mesa.git st/wgl: add a lock assertion in stw_framebuffer_from_hwnd_locked() Reviewed-by: Sinclair Yeh Reviewed-by: Charmaine Lee --- diff --git a/src/gallium/state_trackers/wgl/stw_framebuffer.c b/src/gallium/state_trackers/wgl/stw_framebuffer.c index 7d7248e0030..b49bc22e21f 100644 --- a/src/gallium/state_trackers/wgl/stw_framebuffer.c +++ b/src/gallium/state_trackers/wgl/stw_framebuffer.c @@ -55,6 +55,7 @@ stw_framebuffer_from_hwnd_locked(HWND hwnd) for (fb = stw_dev->fb_head; fb != NULL; fb = fb->next) if (fb->hWnd == hwnd) { stw_framebuffer_lock(fb); + assert(fb->mutex.RecursionCount == 1); return fb; }