OSDN Git Service

wgl: Do not reach out and destroy contexts on cleanup.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 12 Feb 2010 11:00:22 +0000 (11:00 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 12 Feb 2010 11:40:05 +0000 (11:40 +0000)
commite475ae920a4f6026b78b0bbe80c83cf4060f610e
treec94566160150d64ddb0977bd10de93d87f4c2c85
parent8ce747defa2dafebfa99f03913342d6aca995341
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.
src/gallium/state_trackers/wgl/stw_device.c