loader: Fix loader_unwrap_physical_device() to cast to correct type
authorPiers Daniell <pdaniell@nvidia.com>
Thu, 31 Mar 2016 20:47:57 +0000 (14:47 -0600)
committerJon Ashburn <jon@lunarg.com>
Fri, 1 Apr 2016 17:23:18 +0000 (11:23 -0600)
commitc267cd99847863b77d83e1b82bdb3b3d37fe7b2c
tree2f070c50f060cfa7e21e0f4b3fdfbedb5e5dad29
parentfff87f6cca6918c85f14c97d5f912f4b28013ce2
loader: Fix loader_unwrap_physical_device() to cast to correct type

The trampoline loader_unwrap_physical_device() utility function was
casting the VkPhysicalDevice parameter to (loader_physical_device*)
instead of (loader_physical_device_tramp*). It worked previously because
it just so happened that the phys_dev member was in the same location in
both structs.

Change-Id: I3bee175df8b64b44ef2e440f7e43603ca0617da2
loader/loader.h