loader: gh1093 - Fix multiple EnumPhysDev calls
authorMark Young <marky@lunarg.com>
Thu, 27 Oct 2016 21:32:08 +0000 (15:32 -0600)
committerMark Young <marky@lunarg.com>
Thu, 27 Oct 2016 21:32:08 +0000 (15:32 -0600)
commit04a72a8ebf48333d92ff83d46d76730c65d76445
treea8a69bf187768140b6906cd3e35e47dc62b55d76
parent665734bffa6e3364f2f12fe533a030f54274df66
loader: gh1093 - Fix multiple EnumPhysDev calls

The loader was freeing a previously allocated struct of physical
devices every vkEnumeratePhysicalDevice call.  This caused
pointers to become stale.  This change doesn't fix every scenario,
but it does return the loader to the behavior it had before.
Future work will re-evaluate the list every time and add/remove
items as necessary.

Change-Id: I32b27df1fab521826e6cd15c534d3ab4b2ea0688
loader/loader.c