commit | e475ae920a4f6026b78b0bbe80c83cf4060f610e | [log] [tgz] |
---|---|---|
author | José Fonseca <jfonseca@vmware.com> | Fri Feb 12 11:00:22 2010 +0000 |
committer | José Fonseca <jfonseca@vmware.com> | Fri Feb 12 11:40:05 2010 +0000 |
tree | c94566160150d64ddb0977bd10de93d87f4c2c85 | |
parent | 8ce747defa2dafebfa99f03913342d6aca995341 [diff] |
wgl: Do not reach out and destroy contexts on cleanup. Simply skip cleanup when contexts are still active. This addresses two issues: - in some situations the ICD DLL may be unloaded before the DLL that is using GL contexts is, so we may receive GL calls after stw_cleanup. - when aborting (exception, or control-c) the contexts may have been left in an inconsistent state and attempting to destroy can cause unpredictable results.