Module: Mesa Branch: mesa_7_5_branch Commit: 6e24fdeae5038b63b6b0f94b05d4529a5f62d6ae URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6e24fdeae5038b63b6b0f94b05d4529a5f62d6ae
Author: José Fonseca <[email protected]> Date: Wed Jun 17 15:22:32 2009 +0100 progs/wgl: Tweak the initialization wait in wglthreads. There was still a non-zero probability for wglShareLists of failing. --- progs/wgl/wglthreads/wglthreads.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/progs/wgl/wglthreads/wglthreads.c b/progs/wgl/wglthreads/wglthreads.c index 405b5db..27dca10 100644 --- a/progs/wgl/wglthreads/wglthreads.c +++ b/progs/wgl/wglthreads/wglthreads.c @@ -507,9 +507,9 @@ ThreadProc(void *p) struct winthread *wt = (struct winthread *) p; HGLRC share; - /* Wait for first thread context */ + /* Wait for the previous thread */ if(Texture && wt->Index > 0) { - WaitForSingleObject(WinThreads[0].hEventInitialised, INFINITE); + WaitForSingleObject(WinThreads[wt->Index - 1].hEventInitialised, INFINITE); share = WinThreads[0].Context; } else _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
