From f45b644e11127e07fe909f418d1c0e2ca3285743 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 10 Nov 2015 14:49:01 -0700 Subject: [PATCH] st/wgl: add a lock assertion in stw_framebuffer_from_hwnd_locked() Reviewed-by: Sinclair Yeh Reviewed-by: Charmaine Lee --- src/gallium/state_trackers/wgl/stw_framebuffer.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2