aboutsummaryrefslogtreecommitdiff
path: root/loader/debug_report.c
diff options
context:
space:
mode:
authorMark Young <marky@lunarg.com>2016-05-04 16:44:10 -0600
committerMark Young <marky@lunarg.com>2016-05-05 10:01:53 -0600
commitc72b742f4df223aa59d11a0ac9ebe663ee321011 (patch)
treed2555dec5a09fbf5eaec79423c172788092cf290 /loader/debug_report.c
parenta92647878254efa62f22524e1c593e969e19709f (diff)
downloadusermoji-c72b742f4df223aa59d11a0ac9ebe663ee321011.tar.xz
loader: Fix issue when ICD DestroyDebugReportCallbackEXT not found.
Change-Id: Ic1d0f67ec2f8ca438c4bd546e6beb4d565daf89a
Diffstat (limited to 'loader/debug_report.c')
-rw-r--r--loader/debug_report.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/loader/debug_report.c b/loader/debug_report.c
index ae9b3ddf..c339c701 100644
--- a/loader/debug_report.c
+++ b/loader/debug_report.c
@@ -305,6 +305,10 @@ VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateDebugReportCallback(
if (icd) {
storage_idx = 0;
for (icd = inst->icds; icd; icd = icd->next) {
+ if (NULL == icd->DestroyDebugReportCallbackEXT) {
+ continue;
+ }
+
if (icd_info[storage_idx]) {
icd->DestroyDebugReportCallbackEXT(
icd->instance, icd_info[storage_idx], pAllocator);
@@ -336,6 +340,10 @@ terminator_DestroyDebugReportCallback(VkInstance instance,
icd_info = *(VkDebugReportCallbackEXT **)&callback;
storage_idx = 0;
for (icd = inst->icds; icd; icd = icd->next) {
+ if (NULL == icd->DestroyDebugReportCallbackEXT) {
+ continue;
+ }
+
if (icd_info[storage_idx]) {
icd->DestroyDebugReportCallbackEXT(
icd->instance, icd_info[storage_idx], pAllocator);