Swapchain: Ensure Destroy{Device|Surface}() don't core dump.
authorIan Elliott <ianelliott@google.com>
Mon, 25 Jan 2016 19:33:06 +0000 (12:33 -0700)
committerJon Ashburn <jon@lunarg.com>
Thu, 28 Jan 2016 18:19:11 +0000 (11:19 -0700)
commit0675b182376b0ecd51cff4e5c29bb03f2760807a
treeb3ae8b9e22ca71aa709c77afe267edb66d2b0867
parent22ababc340f8f08baefa4c02b9776a62474631e1
Swapchain: Ensure Destroy{Device|Surface}() don't core dump.

There are multiple pieces of code that can try to delete an SwpSwapchain struct:

- DestroyDevice()
- DestroySurface()
- DestroySwapchain()

This tries to address the various paths through the code, so that
Destroy{Device|Surface}() won't also try to destroy an already-destroyed
swapchain.
layers/swapchain.cpp