diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-04-09 20:35:55 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-04-09 20:45:43 +0100 |
commit | 4bbb5eb96ad9f2e5b6e064854eeb5f5cb1498f9d (patch) | |
tree | ece258e53a0daa48aff2c871510b01370135056b /src/gallium/state_trackers/wgl/shared/stw_tls.h | |
parent | deff09921563419a77bd1aad0054afa34214ed1a (diff) |
wgl: Use hooks instead of subclassing the window.
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.
Diffstat (limited to 'src/gallium/state_trackers/wgl/shared/stw_tls.h')
-rw-r--r-- | src/gallium/state_trackers/wgl/shared/stw_tls.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/wgl/shared/stw_tls.h b/src/gallium/state_trackers/wgl/shared/stw_tls.h index 23b61e68ff..f5a6bdf4b1 100644 --- a/src/gallium/state_trackers/wgl/shared/stw_tls.h +++ b/src/gallium/state_trackers/wgl/shared/stw_tls.h @@ -28,11 +28,14 @@ #ifndef STW_TLS_H #define STW_TLS_H +#include <windows.h> + struct stw_tls_data { uint currentPixelFormat; HDC currentDC; UINT_PTR currentGLRC; + HHOOK hCallWndProcHook; }; boolean |