projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57617c8
)
wgl: Go into dormant state when DLL is unloaded unclealy.
author
José Fonseca
<jfonseca@vmware.com>
Fri, 12 Feb 2010 13:59:16 +0000
(13:59 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 12 Feb 2010 23:38:19 +0000
(23:38 +0000)
When our DLL is unloaded, even if we leave the data structures in memory
for sake of future calls, the MS CRT will destroy the heap. Instead we
make all calls no-ops by setting stw_dev to NULL.
src/gallium/state_trackers/wgl/stw_device.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/wgl/stw_device.c
b/src/gallium/state_trackers/wgl/stw_device.c
index ce6fe5f4ef519e6d40dd188f1714184c802f5657..e5fa6ac8eb4575ee37b556282aeab17cc084f20e 100644
(file)
--- a/
src/gallium/state_trackers/wgl/stw_device.c
+++ b/
src/gallium/state_trackers/wgl/stw_device.c
@@
-168,6
+168,7
@@
stw_cleanup(void)
pipe_mutex_unlock( stw_dev->ctx_mutex );
if (dhglrc) {
debug_printf("%s: contexts still active -- cleanup aborted\n", __FUNCTION__);
+ stw_dev = NULL;
return;
}