summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/wgl/shared/stw_tls.h
AgeCommit message (Collapse)Author
2009-06-18wgl: Move all thread related code together.José Fonseca
Not only for cosmetic reasons, but also because we need to set the SetWindowsHookEx hook for threads created before the DllMain is called (threads for each we don't get the DLL_THREAD_ATTACH notification).
2009-05-30wgl: Use the right pixel format.José Fonseca
There is no current pixel format. Each HDC has its pixelformat which is kept by gdi and set/get via the SetPixelFormat/GetPixelFormat functions. Now the HDC's pixelformat is kept in the stw_framebuffer, which is created during the SetPixelFormat.
2009-04-28wgl: Store current HDC/HGLRC in stw_context.José Fonseca
Less TLS lookups.
2009-04-09wgl: Use hooks instead of subclassing the window.José Fonseca
Subclassing the window is invasive: we might call an old window proc even after it was removed. Glut and another bug just in the wrong time was provoking this. Hooks don't have this problem.
2009-03-20stw: Keep per-thread storage for current context and pixel format.Michal Krol