st/wgl: Install our windows message hook to threads created before the ICD is loaded.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 4 Apr 2013 19:27:39 +0000 (20:27 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 5 Apr 2013 17:27:54 +0000 (18:27 +0100)
commit1fefc65d20c126e834b0b42a560ffdd8a3a1197e
tree096224db94e8a51648e2fe4e54cc9dc8734c296b
parentca70de9bd20bc4a11b2d2d368e0cc1f49527a947
st/wgl: Install our windows message hook to threads created before the ICD is loaded.

Otherwise we will not receive destroy windows events, causing framebuffers
to leak.

This happens particularly with java and jogl.

Tested with java + jogl, MATLAB.

VMware Internal Bug Number: 1013086.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/state_trackers/wgl/stw_tls.c
src/gallium/state_trackers/wgl/stw_tls.h