diff options
author | Brian Paul <[email protected]> | 2015-11-10 14:49:01 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2015-11-12 11:21:25 -0700 |
commit | f45b644e11127e07fe909f418d1c0e2ca3285743 (patch) | |
tree | 6139da356049f77d239e0262298028a0edea1260 /src/gallium/state_trackers/wgl | |
parent | a1c9feafd592d13f8215e7a535c68a03fd84849e (diff) |
st/wgl: add a lock assertion in stw_framebuffer_from_hwnd_locked()
Reviewed-by: Sinclair Yeh <[email protected]>
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/wgl')
-rw-r--r-- | src/gallium/state_trackers/wgl/stw_framebuffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |