mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
st/wgl: Release stw_framebuffer::mutex after pbuffer creation.
This change releases the stw_framebuffer::mutex past creation of the pbuffer stw_framebuffer. Without this change the pbuffers lock is never released. Since on win32 mutexes are recursive, this does not hurt as long as all actions on a context are done from the same thread. But if, for example, context creation happens in a different thread than usage, every access to the context will block for ever. Signed-off-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
349e4db99e
commit
7b09a94282
1 changed files with 2 additions and 0 deletions
|
|
@ -209,6 +209,8 @@ wglCreatePbufferARB(HDC _hDC,
|
|||
fb = stw_framebuffer_create(hDC, iPixelFormat);
|
||||
if (!fb) {
|
||||
SetLastError(ERROR_NO_SYSTEM_RESOURCES);
|
||||
} else {
|
||||
stw_framebuffer_release(fb);
|
||||
}
|
||||
|
||||
return (HPBUFFERARB)fb;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue