aboutsummaryrefslogtreecommitdiff
path: root/layers
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2016-11-10 09:10:08 -0700
committerMark Lobodzinski <mark@lunarg.com>2016-11-11 13:00:01 -0700
commit9d5686e93ea584b515313286ff2f3cbb940b08d6 (patch)
tree39c186921e0c1018a4fd4306841e1361f9ef3fb0 /layers
parent321e88fde6a04b32454c1036e17478e75a775304 (diff)
downloadusermoji-9d5686e93ea584b515313286ff2f3cbb940b08d6.tar.xz
layers: GH1129, Fix debug report flags
When a debug report callback was created, destroyed, and re-created using different flags, the flags controlling enabled message types could not be unset. Fixed to clear message flags when installing a new debug callback. Change-Id: If784fc41bf413c814343101bf4083c45224d6d8b
Diffstat (limited to 'layers')
-rw-r--r--layers/vk_layer_logging.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/layers/vk_layer_logging.h b/layers/vk_layer_logging.h
index 3dae24c9..1dd2c6d4 100644
--- a/layers/vk_layer_logging.h
+++ b/layers/vk_layer_logging.h
@@ -188,10 +188,11 @@ static inline VkResult layer_create_msg_callback(debug_report_data *debug_data,
if (default_callback) {
AddDebugMessageCallback(debug_data, &debug_data->default_debug_callback_list, pNewDbgFuncNode);
+ debug_data->active_flags |= pCreateInfo->flags;
} else {
AddDebugMessageCallback(debug_data, &debug_data->debug_callback_list, pNewDbgFuncNode);
+ debug_data->active_flags = pCreateInfo->flags;
}
- debug_data->active_flags |= pCreateInfo->flags;
debug_report_log_msg(debug_data, VK_DEBUG_REPORT_DEBUG_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_DEBUG_REPORT_EXT,
(uint64_t)*pCallback, 0, VK_DEBUG_REPORT_ERROR_CALLBACK_REF_EXT, "DebugReport", "Added callback");