diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2016-03-17 13:59:51 -0600 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2016-03-17 14:02:10 -0600 |
| commit | 87d25d509b7edfce73f7918594117a50e2645be2 (patch) | |
| tree | f1f3bfa2dd8235d0bb835c5ccd3085e714150ca7 /layers/vk_layer_utils.cpp | |
| parent | 3a69f6ede2f8b92879cd56a795db3f29a3b8aa39 (diff) | |
| download | usermoji-87d25d509b7edfce73f7918594117a50e2645be2.tar.xz | |
layers: Fix 'Debug Report callbacks not removed' error messages
Change-Id: If214e07ab7fd8e50af0528c36595bf92716357f3
Diffstat (limited to 'layers/vk_layer_utils.cpp')
| -rw-r--r-- | layers/vk_layer_utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layers/vk_layer_utils.cpp b/layers/vk_layer_utils.cpp index 5d7268e0..d44a3b26 100644 --- a/layers/vk_layer_utils.cpp +++ b/layers/vk_layer_utils.cpp @@ -611,12 +611,12 @@ VkStringErrorFlags vk_string_validate(const int max_length, const char *utf8) { return result; } -void layer_debug_actions(debug_report_data *report_data, std::vector<VkDebugReportCallbackEXT> logging_callback, +void layer_debug_actions(debug_report_data *report_data, std::vector<VkDebugReportCallbackEXT> &logging_callback, const VkAllocationCallbacks *pAllocator, const char *layer_identifier) { uint32_t report_flags = 0; uint32_t debug_action = 0; - VkDebugReportCallbackEXT callback; + VkDebugReportCallbackEXT callback = VK_NULL_HANDLE; std::string report_flags_key = layer_identifier; std::string debug_action_key = layer_identifier; |
