diff options
Diffstat (limited to 'progs')
-rw-r--r-- | 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 405b5db8842..27dca10f2a0 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 |