summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/wgl/shared/stw_tls.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-04-09 20:35:55 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-04-09 20:45:43 +0100
commit4bbb5eb96ad9f2e5b6e064854eeb5f5cb1498f9d (patch)
treeece258e53a0daa48aff2c871510b01370135056b /src/gallium/state_trackers/wgl/shared/stw_tls.h
parentdeff09921563419a77bd1aad0054afa34214ed1a (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.h3
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