progs/wgl: Tweak the initialization wait in wglthreads.

There was still a non-zero probability for wglShareLists of failing.
This commit is contained in:
José Fonseca 2009-06-17 15:22:32 +01:00
parent 557421b6de
commit 6e24fdeae5

View file

@ -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