aboutsummaryrefslogtreecommitdiff
path: root/layers/parameter_validation.cpp
diff options
context:
space:
mode:
authorCody Northrop <cnorthrop@google.com>2016-07-12 11:43:32 -0600
committerCody Northrop <cnorthrop@google.com>2016-07-12 13:56:52 -0600
commitf9760b8ef2ff145d67c8faa00371aa2538cb88f8 (patch)
tree87b304d455d2044211b86c4ae6b429d4ec8314e3 /layers/parameter_validation.cpp
parentac0445e063c290d0569a254856366d0371033b4f (diff)
downloadusermoji-f9760b8ef2ff145d67c8faa00371aa2538cb88f8.tar.xz
layers: Don't use instance pointer after it has been destroyed
In unique_objects' explicit_DestroyInstance(), the recently introduced second get_dispatch_table() was using a destroyed instance as a lookup key, failing to find an entry (since the driver controls that memory and probably freed it), and was crashing consistently on PixelC. Instead, use the instance pointer to cleanup instanceExtMap before calling down to the ICD's DestroyInstance. Additionally, use the existing VkLayerInstanceDispatchTable* instead of calling get_dispatch_table() twice.
Diffstat (limited to 'layers/parameter_validation.cpp')
0 files changed, 0 insertions, 0 deletions