diff options
| author | Jon Ashburn <jon@lunarg.com> | 2015-11-19 15:43:26 -0700 |
|---|---|---|
| committer | Jon Ashburn <jon@lunarg.com> | 2015-11-20 10:00:59 -0700 |
| commit | fc466cbc7f992935a3ec7c7d63c0b359c48b9183 (patch) | |
| tree | 3cb922d53716eb3dec1f0a06cdc2dbcfddcc66ef /loader/loader.c | |
| parent | 05b4ed0d447b78d6638015577818518d1d9681c4 (diff) | |
| download | usermoji-fc466cbc7f992935a3ec7c7d63c0b359c48b9183.tar.xz | |
loader: Don't use ICD's VkDevice after it has been destroyed
LX # 201
Conflicts:
loader/trampoline.c
Diffstat (limited to 'loader/loader.c')
| -rw-r--r-- | loader/loader.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/loader/loader.c b/loader/loader.c index cc64e593..45de0e7b 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -1024,11 +1024,10 @@ static struct loader_device *loader_add_logical_device( void loader_remove_logical_device( const struct loader_instance *inst, - VkDevice device) + struct loader_icd *icd, + struct loader_device *found_dev) { - struct loader_device *found_dev, *dev, *prev_dev; - struct loader_icd *icd; - icd = loader_get_icd_and_device(device, &found_dev); + struct loader_device *dev, *prev_dev; if (!icd || !found_dev) return; |
